From 399a99753db4f64b8511150ded914203bd1e1f63 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 29 May 2014 09:30:58 +0200 Subject: [PATCH] lib/initend.c: do not crash if the include keyword resolves to unexistent files. --- lib/initend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/initend.c b/lib/initend.c index 72576f87..283f01d9 100644 --- a/lib/initend.c +++ b/lib/initend.c @@ -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; }