conf-parser: simplify conf_parse_path()

Follow-up for 97651797e83d0548aef9f808657d3518d89e5aee.
This commit is contained in:
Yu Watanabe
2018-06-13 13:50:35 +09:00
parent dbc4661a2c
commit 8e7b5bd047
+2 -6
View File
@@ -716,10 +716,8 @@ int config_parse_path(
assert(rvalue);
assert(data);
if (isempty(rvalue)) {
n = NULL;
if (isempty(rvalue))
goto finalize;
}
n = strdup(rvalue);
if (!n)
@@ -730,9 +728,7 @@ int config_parse_path(
return fatal ? -ENOEXEC : 0;
finalize:
free_and_replace(*s, n);
return 0;
return free_and_replace(*s, n);
}
int config_parse_strv(