summaryrefslogtreecommitdiff
path: root/package/config/zconf.l
diff options
context:
space:
mode:
Diffstat (limited to 'package/config/zconf.l')
-rw-r--r--package/config/zconf.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/config/zconf.l b/package/config/zconf.l
index cfa46077c..187d38cca 100644
--- a/package/config/zconf.l
+++ b/package/config/zconf.l
@@ -265,7 +265,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);