aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/lex.zconf.c_shipped
diff options
context:
space:
mode:
authorMarcin Garski <mgarski@post.pl>2007-05-05 16:49:00 -0400
committerSam Ravnborg <sam@ravnborg.org>2007-05-06 03:27:15 -0400
commit11de39e2fbbc592018e0a231d0ee773653dcc8d6 (patch)
treeb924f942d4bb696669dbd572c4708a173953dec7 /scripts/kconfig/lex.zconf.c_shipped
parent767e581d759fe6adfef5e676cd1cd8e11f603d1a (diff)
kconfig: fix mconf segmentation fault
I have found small bug in mconf, when you run it without any argument it will sigsegv. Without patch: $ scripts/kconfig/mconf Segmentation fault With patch: $ scripts/kconfig/mconf can't find file (null) Signed-off-by: Marcin Garski <mgarski@post.pl> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/kconfig/lex.zconf.c_shipped')
-rw-r--r--scripts/kconfig/lex.zconf.c_shipped2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/lex.zconf.c_shipped b/scripts/kconfig/lex.zconf.c_shipped
index 800f8c71c407..0fdc9049296f 100644
--- a/scripts/kconfig/lex.zconf.c_shipped
+++ b/scripts/kconfig/lex.zconf.c_shipped
@@ -2264,7 +2264,7 @@ FILE *zconf_fopen(const char *name)
2264 FILE *f; 2264 FILE *f;
2265 2265
2266 f = fopen(name, "r"); 2266 f = fopen(name, "r");
2267 if (!f && name[0] != '/') { 2267 if (!f && name != NULL && name[0] != '/') {
2268 env = getenv(SRCTREE); 2268 env = getenv(SRCTREE);
2269 if (env) { 2269 if (env) {
2270 sprintf(fullname, "%s/%s", env, name); 2270 sprintf(fullname, "%s/%s", env, name);