summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/load-fragment.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c
index 41ba4c7eb7..a48cb4029a 100644
--- a/src/core/load-fragment.c
+++ b/src/core/load-fragment.c
@@ -532,17 +532,15 @@ int config_parse_exec(
e += ltype;
- /* FIXME: ExecStart=<empty> clears the list, but ExecStart=<whitespace>
- * doesn't, they should behave the same. */
+ rvalue += strspn(rvalue, WHITESPACE);
+ p = rvalue;
+
if (isempty(rvalue)) {
/* An empty assignment resets the list */
*e = exec_command_free_list(*e);
return 0;
}
- rvalue += strspn(rvalue, WHITESPACE);
- p = rvalue;
-
do {
int i;
_cleanup_strv_free_ char **n = NULL;