From ee9ead76bb1e7c2d524f96b77518675768f70d91 Mon Sep 17 00:00:00 2001 From: Susant Sahani Date: Mon, 18 Jan 2021 13:10:18 +0100 Subject: [PATCH] network: wait-online - add a assert --- src/network/wait-online/link.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/network/wait-online/link.c b/src/network/wait-online/link.c index d0f33476173..e820a7a20f3 100644 --- a/src/network/wait-online/link.c +++ b/src/network/wait-online/link.c @@ -15,6 +15,7 @@ int link_new(Manager *m, Link **ret, int ifindex, const char *ifname) { assert(m); assert(ifindex > 0); + assert(ifname); n = strdup(ifname); if (!n) -- 2.47.3