chiark / gitweb /
timedatectl: introduce new command line client for timedated
[elogind.git] / src / shared / strv.c
index c8d856344c18987b7c2dc6360cc4417b0820fd8c..822b2dc888e3865bd80341bbb6dc96d6c3874920 100644 (file)
@@ -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;