diff options
author | Randy Dunlap <rdunlap@xenotime.net> | 2006-06-08 22:12:50 -0700 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2006-06-09 16:28:07 +0200 |
commit | 250725aa13f5c9595e5bc265ebed8471e816d8b4 (patch) | |
tree | 3a9929b80ab81d1ad1ef513fa5683c165c684740 /scripts | |
parent | e55a3e8aed99626dd9a9a6732fc0eb5b75ef29bd (diff) | |
download | linux-stable-250725aa13f5c9595e5bc265ebed8471e816d8b4.tar.gz linux-stable-250725aa13f5c9595e5bc265ebed8471e816d8b4.tar.bz2 linux-stable-250725aa13f5c9595e5bc265ebed8471e816d8b4.zip |
kconfig: exit if no beginning filename
If the beginning Kconfig file is missing, config segfaults so it might as
well exit after the error message.
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/kconfig/conf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c index ded5ffe184b8..4dcb8867b5f4 100644 --- a/scripts/kconfig/conf.c +++ b/scripts/kconfig/conf.c @@ -539,6 +539,7 @@ int main(int ac, char **av) name = av[i]; if (!name) { printf(_("%s: Kconfig file missing\n"), av[0]); + exit(1); } conf_parse(name); //zconfdump(stdout); |