config: fix using the right nm-version for the match specification

We can disable/enable configuration snippets per NetworkManager
version. But we must compare it against the current version
that we build, not the current API version.
This commit is contained in:
Thomas Haller 2018-01-16 16:05:17 +01:00
parent 72bf38cad6
commit f67686256f

View file

@ -553,7 +553,7 @@ nm_config_create_keyfile ()
/* this is an external variable, to make loading testable. Other then that,
* no code is supposed to change this. */
guint _nm_config_match_nm_version = NM_VERSION_CUR_STABLE;
guint _nm_config_match_nm_version = NM_VERSION;
char *_nm_config_match_env = NULL;
static gboolean