diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2015-03-17 12:20:31 +0100 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2015-03-19 14:12:00 +0100 |
commit | 33c2ce7b200747c172d4899c717a8e9097d84659 (patch) | |
tree | 5b15874c8e83e94987d7a79f221c2811ddcce7d8 /src/shared/strv.c | |
parent | e0d065d4059181bfbf0aba81f780d32ba194c319 (diff) |
strv: return NULL from strv_free()
We always return NULL/invalid-object from destructors, fix strv_free() to
do the same.
Diffstat (limited to 'src/shared/strv.c')
-rw-r--r-- | src/shared/strv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/strv.c b/src/shared/strv.c index ee45ad1d0f..8c6ba6a633 100644 --- a/src/shared/strv.c +++ b/src/shared/strv.c @@ -80,9 +80,10 @@ void strv_clear(char **l) { *l = NULL; } -void strv_free(char **l) { +char **strv_free(char **l) { strv_clear(l); free(l); + return NULL; } char **strv_copy(char * const *l) { |