From f78e0bf2463bb221359152b22c171e9abee86bdc Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 30 Jun 2020 15:32:29 +0200 Subject: [PATCH] shared: assert that nm_utils_strsplit_set_full() returns non-empty strv array --- shared/nm-glib-aux/nm-shared-utils.c | 1 + 1 file changed, 1 insertion(+) 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; }