From: Daan De Meyer Date: Mon, 6 Jan 2025 22:02:30 +0000 (+0100) Subject: repart: Use streq_ptr() X-Git-Tag: v258-rc1~1686 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ffcdaec632d8b96b63499054ff3492b03b33e233;p=thirdparty%2Fsystemd.git repart: Use streq_ptr() p->format is not guaranteed to be initialized. --- diff --git a/src/repart/repart.c b/src/repart/repart.c index 7934a974355..bed4fd92bc2 100644 --- a/src/repart/repart.c +++ b/src/repart/repart.c @@ -2324,7 +2324,7 @@ static int partition_finalize_fstype(Partition *p, const char *path) { return log_oom(); const char *v = secure_getenv(e); - if (!v || streq(p->format, v)) + if (!v || streq_ptr(p->format, v)) return 0; log_syntax(NULL, LOG_NOTICE, path, 1, 0,