diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-12-18 12:33:05 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-12-18 19:26:21 -0500 |
commit | 447021aafdf4bd0c0f70a3078d35a8f00ada4504 (patch) | |
tree | 3a0ac085595cc6d95dab2421efd0be80f27d9ad5 /src/core/load-fragment.c | |
parent | f1acf85a36f4c32d69511fe1bfa12f66e28fa80d (diff) |
tree-wide: make condition_free_list return NULL
Diffstat (limited to 'src/core/load-fragment.c')
-rw-r--r-- | src/core/load-fragment.c | 9 |
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; } |