lib/initend.c: do not crash if the include keyword resolves to unexistent files.

This commit is contained in:
Juan RP 2014-05-29 09:30:58 +02:00
parent 19d36aaf04
commit 399a99753d

View File

@ -165,7 +165,7 @@ parse_files_glob(struct xbps_handle *xhp, const char *path, bool nested, bool vp
int i, rv = 0;
glob(path, 0, NULL, &globbuf);
for(i = 0; globbuf.gl_pathv[i]; i++) {
for (i = 0; globbuf.gl_pathv; i++) {
if ((rv = parse_file(xhp, globbuf.gl_pathv[i], nested, vpkgconf)) != 0)
break;
}