summaryrefslogtreecommitdiff
path: root/src/shared/strv.h
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2015-04-12 17:01:34 -0400
committerAnthony G. Basile <blueness@gentoo.org>2015-04-12 17:01:34 -0400
commitff1acaf3c4473369707f19ac2fc132556c858db4 (patch)
tree4a0d3f50fffd84aa57a505f878dba282b9a1fc71 /src/shared/strv.h
parent36f74863add64c1d13ecb968b5004a97c6d64f7a (diff)
strv: return NULL from strv_free()
We always return NULL/invalid-object from destructors, fix strv_free() to do the same. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/shared/strv.h')
-rw-r--r--src/shared/strv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/strv.h b/src/shared/strv.h
index 94bdbe62aa..ed0bb2e372 100644
--- a/src/shared/strv.h
+++ b/src/shared/strv.h
@@ -24,7 +24,7 @@
#include "util.h"
-void strv_free(char **l);
+char **strv_free(char **l);
DEFINE_TRIVIAL_CLEANUP_FUNC(char**, strv_free);
#define _cleanup_strv_free_ _cleanup_(strv_freep)