Skip to content

Commit

Permalink
kconfig: exit if no beginning filename
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Randy Dunlap authored and Sam Ravnborg committed Jun 9, 2006
1 parent e55a3e8 commit 250725a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/kconfig/conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 250725a

Please sign in to comment.