]> err.no Git - linux-2.6/commitdiff
kconfig: exit if no beginning filename
authorRandy Dunlap <rdunlap@xenotime.net>
Fri, 9 Jun 2006 05:12:50 +0000 (22:12 -0700)
committerSam Ravnborg <sam@mars.ravnborg.org>
Fri, 9 Jun 2006 14:28:07 +0000 (16:28 +0200)
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>
scripts/kconfig/conf.c

index ded5ffe184b8147413178624eacea60926abbf5d..4dcb8867b5f4d3ac3940758eef48ef8f312271f8 100644 (file)
@@ -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);