From: Frantisek Sumsal Date: Mon, 18 Dec 2023 16:25:10 +0000 (+0100) Subject: analyze: use strempty() X-Git-Tag: v256-rc1~1462^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3c4d0ec9406d5dd1e3b741ee9a00d6f4b4bf3114;p=thirdparty%2Fsystemd.git analyze: use strempty() --- diff --git a/src/analyze/analyze-verify-util.c b/src/analyze/analyze-verify-util.c index 6fbd6fa54c3..0202db77135 100644 --- a/src/analyze/analyze-verify-util.c +++ b/src/analyze/analyze-verify-util.c @@ -152,7 +152,7 @@ int verify_set_unit_path(char **filenames) { * Treat explicit empty path to mean that nothing should be appended. */ old = getenv("SYSTEMD_UNIT_PATH"); if (!streq_ptr(old, "") && - !strextend_with_separator(&joined, ":", old ?: "")) + !strextend_with_separator(&joined, ":", strempty(old))) return -ENOMEM; assert_se(set_unit_path(joined) >= 0);