mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 09:21:26 +03:00
fstab-generator: Small cleanup
This commit is contained in:
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user