From: Mike Yuan Date: Tue, 11 Nov 2025 18:51:01 +0000 (+0100) Subject: core/exec-invoke: do not check array being non-NULL X-Git-Tag: v259-rc1~97 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1d73c596fa890c696a8d91945a8b9adb05926991;p=thirdparty%2Fsystemd.git core/exec-invoke: do not check array being non-NULL Addresses https://download.copr.fedorainfracloud.org/results/packit/systemd-systemd-39680/fedora-rawhide-i386/09787959-systemd/builder-live.log.gz --- diff --git a/src/core/exec-invoke.c b/src/core/exec-invoke.c index ff6d73b9dbf..20efad69125 100644 --- a/src/core/exec-invoke.c +++ b/src/core/exec-invoke.c @@ -2134,7 +2134,7 @@ static int build_environment( } if (!sd_id128_is_null(p->invocation_id)) { - assert(p->invocation_id_string); + assert(!isempty(p->invocation_id_string)); r = strv_extend_joined_with_size(&e, &n, "INVOCATION_ID=", p->invocation_id_string); if (r < 0)