summary refs log tree commit diff
path: root/libnm-util/nm-connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnm-util/nm-connection.c')
-rw-r--r--libnm-util/nm-connection.c3
1 files changed, 1 insertions, 2 deletions
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);
 }
 
 /**