diff options
Diffstat (limited to 'src/shared/strv.c')
-rw-r--r-- | src/shared/strv.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/shared/strv.c b/src/shared/strv.c index c8d856344c..822b2dc888 100644 --- a/src/shared/strv.c +++ b/src/shared/strv.c @@ -64,6 +64,14 @@ void strv_free(char **l) { free(l); } +void strv_freep(char ***l) { + if (!l) + return; + + strv_free(*l); + *l = NULL; +} + char **strv_copy(char **l) { char **r, **k; |