From 59c3714a494c3b3765657c0551ad82842d98a7d2 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Sat, 26 Apr 2014 20:55:09 +0200 Subject: Imported Upstream version 0.9.8.10 --- libnm-util/nm-connection.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libnm-util/nm-connection.c') diff --git a/libnm-util/nm-connection.c b/libnm-util/nm-connection.c index 15b1685f..390b2a3b 100644 --- a/libnm-util/nm-connection.c +++ b/libnm-util/nm-connection.c @@ -1006,9 +1006,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); } /** -- cgit 1.3.0-6-gf8a5