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:33:05 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-12-18 19:26:21 -0500
commit447021aafdf4bd0c0f70a3078d35a8f00ada4504 (patch)
tree3a0ac085595cc6d95dab2421efd0be80f27d9ad5 /src/core/load-fragment.c
parentf1acf85a36f4c32d69511fe1bfa12f66e28fa80d (diff)
tree-wide: make condition_free_list return NULL
Diffstat (limited to 'src/core/load-fragment.c')
-rw-r--r--src/core/load-fragment.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c
index e8dfa1a511..7430036f48 100644
--- a/src/core/load-fragment.c
+++ b/src/core/load-fragment.c
@@ -2042,8 +2042,7 @@ int config_parse_unit_condition_path(
if (isempty(rvalue)) {
/* Empty assignment resets the list */
- condition_free_list(*list);
- *list = NULL;
+ *list = condition_free_list(*list);
return 0;
}
@@ -2100,8 +2099,7 @@ int config_parse_unit_condition_string(
if (isempty(rvalue)) {
/* Empty assignment resets the list */
- condition_free_list(*list);
- *list = NULL;
+ *list = condition_free_list(*list);
return 0;
}
@@ -2150,8 +2148,7 @@ int config_parse_unit_condition_null(
if (isempty(rvalue)) {
/* Empty assignment resets the list */
- condition_free_list(*list);
- *list = NULL;
+ *list = condition_free_list(*list);
return 0;
}