summaryrefslogtreecommitdiff
path: root/src/core/load-fragment.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-12-18 12:29:24 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-12-18 19:26:21 -0500
commitf1acf85a36f4c32d69511fe1bfa12f66e28fa80d (patch)
tree83c05bd89ea3368b49dd5a838fa2b88baeeb7134 /src/core/load-fragment.c
parentf08fa3be8d0b90ff0e778c7f2457711e9800ae95 (diff)
core: make exec_command_free_list return NULL
Diffstat (limited to 'src/core/load-fragment.c')
-rw-r--r--src/core/load-fragment.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c
index 358d36beb6..e8dfa1a511 100644
--- a/src/core/load-fragment.c
+++ b/src/core/load-fragment.c
@@ -538,8 +538,7 @@ int config_parse_exec(const char *unit,
if (isempty(rvalue)) {
/* An empty assignment resets the list */
- exec_command_free_list(*e);
- *e = NULL;
+ *e = exec_command_free_list(*e);
return 0;
}