mirror of
https://github.com/systemd/systemd.git
synced 2026-08-04 23:20:32 +00:00
fstab-generator: Small cleanup
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
125dd07483
commit
f88dc3edeb
@@ -511,16 +511,12 @@ static int parse_proc_cmdline_item(const char *key, const char *value) {
|
||||
|
||||
} else if (streq(key, "root") && value) {
|
||||
|
||||
free(arg_root_what);
|
||||
arg_root_what = strdup(value);
|
||||
if (!arg_root_what)
|
||||
if (free_and_strdup(&arg_root_what, value) < 0)
|
||||
return log_oom();
|
||||
|
||||
} else if (streq(key, "rootfstype") && value) {
|
||||
|
||||
free(arg_root_fstype);
|
||||
arg_root_fstype = strdup(value);
|
||||
if (!arg_root_fstype)
|
||||
if (free_and_strdup(&arg_root_fstype, value) < 0)
|
||||
return log_oom();
|
||||
|
||||
} else if (streq(key, "rootflags") && value) {
|
||||
|
||||
Reference in New Issue
Block a user