aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/config/lex.zconf.c_shipped
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-12-11 04:41:56 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-12-11 04:41:56 +0000
commit30992cceeb2403d9fa362f50068189cca22c9aeb (patch)
tree700f0d64d7027b174fb00e85939cdde085d984dd /scripts/config/lex.zconf.c_shipped
parentf26b1538365c24c8e905e6385ec8ac89e6fd3d01 (diff)
downloadupstream-30992cceeb2403d9fa362f50068189cca22c9aeb.tar.gz
upstream-30992cceeb2403d9fa362f50068189cca22c9aeb.tar.bz2
upstream-30992cceeb2403d9fa362f50068189cca22c9aeb.zip
menuconfig: allow wildcard includes to return no match (#6339)
SVN-Revision: 18743
Diffstat (limited to 'scripts/config/lex.zconf.c_shipped')
-rw-r--r--scripts/config/lex.zconf.c_shipped5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/config/lex.zconf.c_shipped b/scripts/config/lex.zconf.c_shipped
index 42bcdd4562..31637377ab 100644
--- a/scripts/config/lex.zconf.c_shipped
+++ b/scripts/config/lex.zconf.c_shipped
@@ -2268,7 +2268,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",