X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/f52d66ff00b24111f87c274d3d7085ef2e1d27b1..b2e1bfb056bca17d81fdcbf020d9948a88d17304:/scripts/config/lex.zconf.c_shipped diff --git a/scripts/config/lex.zconf.c_shipped b/scripts/config/lex.zconf.c_shipped index 5e01ee531..31637377a 100644 --- a/scripts/config/lex.zconf.c_shipped +++ b/scripts/config/lex.zconf.c_shipped @@ -20,7 +20,6 @@ #include #include #include -#include /* end standard C headers. */ @@ -748,6 +747,7 @@ char *zconftext; #include #include #include +#include #define LKC_DIRECT_LINK #include "lkc.h" @@ -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", @@ -2280,7 +2283,7 @@ void zconf_nextfile(const char *name) filename = files.gl_pathv[i]; file = file_lookup(filename); - buf = malloc(sizeof(*buf)); + buf = malloc(sizeof(*buf)); memset(buf, 0, sizeof(*buf)); current_buf->state = YY_CURRENT_BUFFER; zconfin = zconf_fopen(filename);