From 95ee4fd2cc4c3148033c802df9d4ee7d6c444308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 27 Feb 2026 20:22:04 +0100 Subject: [PATCH] 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. --- src/notify/notify.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/notify/notify.c b/src/notify/notify.c index cdca928f90..d17df1eafa 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)