diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-02-16 09:56:29 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-05-30 07:58:59 +0200 |
commit | 39154d61478a7440b1527f02afeff5b6ffb541ce (patch) | |
tree | 3a2b58edba80a96a1de75c693898832bcb877250 /src/basic/strv.h | |
parent | c3d60196c5b20e6209fcc649a63c6d7c1692d798 (diff) |
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.
Diffstat (limited to 'src/basic/strv.h')
-rw-r--r-- | src/basic/strv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/strv.h b/src/basic/strv.h index 2ef6d325d..7e921be18 100644 --- a/src/basic/strv.h +++ b/src/basic/strv.h @@ -194,6 +194,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); #endif // 0 |