diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2013-11-01 12:29:31 +0100 |
---|---|---|
committer | Jiří Klimeš <jklimes@redhat.com> | 2013-11-01 12:38:25 +0100 |
commit | fc9eae55b3607cea15e08ccf800bfd8c83d498bd (patch) | |
tree | eb8858585e6a6ab566903eab51a978f3b21be06c | |
parent | abe4f4daf57a9f26a4bbe583ba2cdd6acae3b961 (diff) | |
download | NetworkManager-fc9eae55b3607cea15e08ccf800bfd8c83d498bd.tar.gz |
keyfile: replace g_str_equal() with g_strcmp0()
It fixes crash when nm_keyfile_connection_get_path() returns NULL.
-rw-r--r-- | src/settings/plugins/keyfile/plugin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings/plugins/keyfile/plugin.c b/src/settings/plugins/keyfile/plugin.c index 97d93a0bef..c5fb9e0433 100644 --- a/src/settings/plugins/keyfile/plugin.c +++ b/src/settings/plugins/keyfile/plugin.c @@ -160,7 +160,7 @@ find_by_path (SCPluginKeyfile *self, const char *path) g_hash_table_iter_init (&iter, priv->connections); while (g_hash_table_iter_next (&iter, NULL, (gpointer) &candidate)) { - if (g_str_equal (path, nm_keyfile_connection_get_path (candidate))) + if (g_strcmp0 (path, nm_keyfile_connection_get_path (candidate)) == 0) return candidate; } return NULL; |