From: Zbigniew Jędrzejewski-Szmek Date: Fri, 27 Feb 2026 19:22:04 +0000 (+0100) Subject: notify: add one more assert X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=95ee4fd2cc4c3148033c802df9d4ee7d6c444308;p=thirdparty%2Fsystemd.git notify: add one more assert We tend to get those preallocated array sizes wrong. In this case, the count was correct, but add the usual assert. --- diff --git a/src/notify/notify.c b/src/notify/notify.c index cdca928f90a..d17df1eafa8 100644 --- a/src/notify/notify.c +++ b/src/notify/notify.c @@ -604,6 +604,7 @@ static int run(int argc, char* argv[]) { } our_env[i++] = NULL; + assert(i <= ELEMENTSOF(our_env)); final_env = strv_env_merge((char**) our_env, arg_env); if (!final_env)