lib/initend.c: fix clang warning; no need to initialize partially glob_t.

This commit is contained in:
Juan RP 2014-05-15 17:00:29 +02:00
parent ccc5a29a27
commit f7d1ed6ae3

View File

@ -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);