fstab-generator: Small cleanup

This commit is contained in:
Tobias Hunger 2014-10-03 20:41:43 -04:00 committed by Zbigniew Jędrzejewski-Szmek
parent 125dd07483
commit f88dc3edeb
1 changed files with 2 additions and 6 deletions

View File

@ -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) {