diff options
author | Marcin Garski <mgarski@post.pl> | 2007-05-05 22:49:00 +0200 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2007-05-06 09:27:15 +0200 |
commit | 11de39e2fbbc592018e0a231d0ee773653dcc8d6 (patch) | |
tree | b924f942d4bb696669dbd572c4708a173953dec7 /scripts/kconfig/zconf.l | |
parent | 767e581d759fe6adfef5e676cd1cd8e11f603d1a (diff) | |
download | kernel_samsung_smdk4412-11de39e2fbbc592018e0a231d0ee773653dcc8d6.zip kernel_samsung_smdk4412-11de39e2fbbc592018e0a231d0ee773653dcc8d6.tar.gz kernel_samsung_smdk4412-11de39e2fbbc592018e0a231d0ee773653dcc8d6.tar.bz2 |
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/zconf.l')
-rw-r--r-- | scripts/kconfig/zconf.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/zconf.l b/scripts/kconfig/zconf.l index cfa4607..187d38c 100644 --- a/scripts/kconfig/zconf.l +++ b/scripts/kconfig/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); |