From fc9eae55b3607cea15e08ccf800bfd8c83d498bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Fri, 1 Nov 2013 12:29:31 +0100 Subject: keyfile: replace g_str_equal() with g_strcmp0() It fixes crash when nm_keyfile_connection_get_path() returns NULL. --- src/settings/plugins/keyfile/plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.1