libnm-util: do not assert valid connection type in nm_connection_is_type()

That is not useful, simply return FALSE.
This commit is contained in:
Jiří Klimeš 2013-11-01 12:24:57 +01:00
parent 886ca75ac3
commit abe4f4daf5

View file

@ -959,9 +959,8 @@ nm_connection_is_type (NMConnection *connection, const char *type)
g_assert (s_con);
type2 = nm_setting_connection_get_connection_type (s_con);
g_assert (type2);
return !strcmp (type2, type);
return (g_strcmp0 (type2, type) == 0);
}
/**