summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-06-30 15:32:29 +0200
committerThomas Haller <thaller@redhat.com>2020-07-10 13:12:40 +0200
commitf78e0bf2463bb221359152b22c171e9abee86bdc (patch)
treecf06282728a092f8a185bff1354a2a95804d1007
parent0d65b24b93e8e59b463cefa8db668bd6aa4d6afc (diff)
downloadNetworkManager-f78e0bf2463bb221359152b22c171e9abee86bdc.tar.gz
shared: assert that nm_utils_strsplit_set_full() returns non-empty strv array
-rw-r--r--shared/nm-glib-aux/nm-shared-utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/shared/nm-glib-aux/nm-shared-utils.c b/shared/nm-glib-aux/nm-shared-utils.c
index 9479e64934..ee917fdf6e 100644
--- a/shared/nm-glib-aux/nm-shared-utils.c
+++ b/shared/nm-glib-aux/nm-shared-utils.c
@@ -1780,6 +1780,7 @@ done2:
}
}
+ nm_assert (ptr && ptr[0]);
return ptr;
}