repart: Use streq_ptr()

p->format is not guaranteed to be initialized.
This commit is contained in:
Daan De Meyer
2025-01-06 23:02:30 +01:00
committed by Lennart Poettering
parent 2bef5d187d
commit ffcdaec632

View File

@@ -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,