X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/9e7850b0c32c217faf07b322d773cdc5fdd994c2..390d5ffd22c3bd2fc21a2e07d42680758f9b5579:/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);