mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
repart: Use streq_ptr()
p->format is not guaranteed to be initialized.
This commit is contained in:
committed by
Lennart Poettering
parent
2bef5d187d
commit
ffcdaec632
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user