提交 250725aa 编写于 作者: R Randy Dunlap 提交者: Sam Ravnborg

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: NRandy Dunlap <rdunlap@xenotime.net>
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
上级 e55a3e8a
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册