aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/conf.c
diff options
context:
space:
mode:
authorRoman Zippel <zippel@linux-m68k.org>2006-04-09 11:26:39 -0400
committerSam Ravnborg <sam@mars.ravnborg.org>2006-04-11 07:41:06 -0400
commit40aee729b350672c2550640622416a855e27938f (patch)
tree507ded045006d744d2ba83df328c8003419c0162 /scripts/kconfig/conf.c
parenteaaae38c1ac4ccbec6d2de7255b0538f38fb29d6 (diff)
kconfig: fix default value for choice input
The wrong default value can cause conf to end up in endless loop for choice questions. Signed-off-by: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/kconfig/conf.c')
-rw-r--r--scripts/kconfig/conf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c
index 10eeae53d827..b86c64f90c94 100644
--- a/scripts/kconfig/conf.c
+++ b/scripts/kconfig/conf.c
@@ -328,8 +328,7 @@ static int conf_choice(struct menu *menu)
328 printf("%*s%s\n", indent - 1, "", menu_get_prompt(menu)); 328 printf("%*s%s\n", indent - 1, "", menu_get_prompt(menu));
329 def_sym = sym_get_choice_value(sym); 329 def_sym = sym_get_choice_value(sym);
330 cnt = def = 0; 330 cnt = def = 0;
331 line[0] = '0'; 331 line[0] = 0;
332 line[1] = 0;
333 for (child = menu->list; child; child = child->next) { 332 for (child = menu->list; child; child = child->next) {
334 if (!menu_is_visible(child)) 333 if (!menu_is_visible(child))
335 continue; 334 continue;