From a222e56e103f949b148a6942e385ccca2c26d9f3 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Thu, 16 Feb 2017 00:00:34 +0100 Subject: New upstream version 1.6.2 --- libnm-core/nm-utils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libnm-core/nm-utils.c') diff --git a/libnm-core/nm-utils.c b/libnm-core/nm-utils.c index 5b4566bf..478a548d 100644 --- a/libnm-core/nm-utils.c +++ b/libnm-core/nm-utils.c @@ -819,6 +819,8 @@ _nm_utils_slist_to_strv (GSList *slist, gboolean deep_copy) int len, i; len = g_slist_length (slist); + if (!len) + return NULL; strv = g_new (char *, len + 1); if (deep_copy) { @@ -1068,7 +1070,7 @@ nm_utils_security_valid (NMUtilsSecurityType type, case NMU_SEC_LEAP: /* require PRIVACY bit for LEAP? */ if (adhoc) return FALSE; - /* Fall through */ + /* fall through */ case NMU_SEC_STATIC_WEP: g_assert (have_ap); if (!(ap_flags & NM_802_11_AP_FLAGS_PRIVACY)) -- cgit 1.3.0-6-gf8a5