X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/f52d66ff00b24111f87c274d3d7085ef2e1d27b1..6c8dc3bd72ec5bea323efb837a354e5093106675:/scripts/config/zconf.l diff --git a/scripts/config/zconf.l b/scripts/config/zconf.l index 7acb60f8e..71107a56e 100644 --- a/scripts/config/zconf.l +++ b/scripts/config/zconf.l @@ -302,7 +302,10 @@ void zconf_nextfile(const char *name) struct buffer *buf; retval = glob(name, GLOB_ERR | GLOB_MARK, NULL, &files); - if (retval == GLOB_NOSPACE || retval == GLOB_ABORTED || retval == GLOB_NOMATCH) { + if (retval == GLOB_NOMATCH) + return; + + if (retval == GLOB_NOSPACE || retval == GLOB_ABORTED) { printf("%s:%d: glob failed: %s \"%s\"\n", zconf_curname(), zconf_lineno(), retval == GLOB_NOSPACE ? "failed to allocate memory" : retval == GLOB_ABORTED ? "read error" : "no match",