diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2013-11-01 12:24:57 +0100 |
---|---|---|
committer | Jiří Klimeš <jklimes@redhat.com> | 2013-11-01 12:38:25 +0100 |
commit | abe4f4daf57a9f26a4bbe583ba2cdd6acae3b961 (patch) | |
tree | f43e2f693d825630cc81190c5fd66992e7badafb | |
parent | 886ca75ac33de252158a63074cc7cf9d0215c962 (diff) | |
download | NetworkManager-abe4f4daf57a9f26a4bbe583ba2cdd6acae3b961.tar.gz |
libnm-util: do not assert valid connection type in nm_connection_is_type()
That is not useful, simply return FALSE.
-rw-r--r-- | libnm-util/nm-connection.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libnm-util/nm-connection.c b/libnm-util/nm-connection.c index 7c67e84461..ab971c20ff 100644 --- a/libnm-util/nm-connection.c +++ b/libnm-util/nm-connection.c @@ -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); } /** |