chiark / gitweb /
Use initalization instead of explicit zeroing
[elogind.git] / src / tmpfiles / tmpfiles.c
index 4e2519d1b543d2e5ff82e932c30c5441190ce97a..51827f01afdd77fb23c97b5f8e817c75ae1276ca 100644 (file)
@@ -601,11 +601,9 @@ static int recursive_relabel(Item *i, const char *path) {
 
 static int glob_item(Item *i, int (*action)(Item *, const char *)) {
         int r = 0, k;
-        glob_t g;
+        glob_t g = {};
         char **fn;
 
-        zero(g);
-
         errno = 0;
         if ((k = glob(i->path, GLOB_NOSORT|GLOB_BRACE, NULL, &g)) != 0) {