chiark / gitweb /
bus: internalize a lot of protocol definitions
[elogind.git] / src / shared / strv.c
index adeee282b77a6f2f3ca01645062bcbcc9da12880..607c221ae66790b86311bdc36625039e2f401c20 100644 (file)
@@ -531,7 +531,7 @@ char **strv_parse_nulstr(const char *s, size_t l) {
         assert(s || l <= 0);
 
         if (l <= 0)
-                return strv_new(NULL, NULL);
+                return new0(char*, 1);
 
         for (p = s; p < s + l; p++)
                 if (*p == 0)