Skip to contentSkip to conversation

config: exit if no beginning filename

PATCH New Randy.Dunlap 1 participant 1 message Apr 10, 2006 Kconfig

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 config: exit if no beginning filename

From: Randy Dunlap <[email protected]>

If the beginning Kconfig file is missing, config segfaults so it might as well exit after the error message.

---
 scripts/kconfig/conf.c |    1 +
 1 files changed, 1 insertion(+)
scripts/kconfig/conf.c +1 -0
@@ -553,6 +553,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);

---