Move config_parse_join_controllers to shared, add test

config_parse_join_controllers would free the destination argument on failure,
which is contrary to our normal style, where failed parsing has no effect.
Moving it to shared also allows a test to be added.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2018-02-19 15:02:13 +01:00
parent b48382e4e0
commit 9ecdba8cb7
6 changed files with 145 additions and 102 deletions
+1
View File
@@ -179,6 +179,7 @@ static inline bool strv_fnmatch_or_empty(char* const* patterns, const char *s, i
}
char ***strv_free_free(char ***l);
DEFINE_TRIVIAL_CLEANUP_FUNC(char***, strv_free_free);
char **strv_skip(char **l, size_t n);