summaryrefslogtreecommitdiffstats
path: root/package/config/lex.zconf.c_shipped
diff options
context:
space:
mode:
Diffstat (limited to 'package/config/lex.zconf.c_shipped')
-rw-r--r--package/config/lex.zconf.c_shipped2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/config/lex.zconf.c_shipped b/package/config/lex.zconf.c_shipped
index 800f8c71c..0fdc90492 100644
--- a/package/config/lex.zconf.c_shipped
+++ b/package/config/lex.zconf.c_shipped
@@ -2264,7 +2264,7 @@ FILE *zconf_fopen(const char *name)
FILE *f;
f = fopen(name, "r");
- if (!f && name[0] != '/') {
+ if (!f && name != NULL && name[0] != '/') {
env = getenv(SRCTREE);
if (env) {
sprintf(fullname, "%s/%s", env, name);