mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-21 18:24:49 +00:00
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:
parent
886ca75ac3
commit
abe4f4daf5
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue