From: Randy Dunlap Date: Fri, 9 Jun 2006 05:12:50 +0000 (-0700) Subject: kconfig: exit if no beginning filename X-Git-Tag: v2.6.18-rc1~602^2~20 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=250725aa13f5c9595e5bc265ebed8471e816d8b4;p=linux-2.6 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 Cc: Roman Zippel Signed-off-by: Andrew Morton Signed-off-by: Sam Ravnborg --- diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c index ded5ffe184..4dcb8867b5 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);