From f7d1ed6ae329adfaf7a7b80aae790337ed3288c0 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 15 May 2014 17:00:29 +0200 Subject: [PATCH] lib/initend.c: fix clang warning; no need to initialize partially glob_t. --- lib/initend.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/initend.c b/lib/initend.c index b2399ed1..72576f87 100644 --- a/lib/initend.c +++ b/lib/initend.c @@ -159,8 +159,9 @@ parse_option(char *buf, char **k, char **v) } static int -parse_files_glob(struct xbps_handle *xhp, const char *path, bool nested, bool vpkgconf) { - glob_t globbuf = { 0 }; +parse_files_glob(struct xbps_handle *xhp, const char *path, bool nested, bool vpkgconf) +{ + glob_t globbuf; int i, rv = 0; glob(path, 0, NULL, &globbuf);