diff options
author | Roman Zippel <zippel@linux-m68k.org> | 2006-04-09 19:26:39 +0400 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2006-04-11 15:41:06 +0400 |
commit | 40aee729b350672c2550640622416a855e27938f (patch) | |
tree | 507ded045006d744d2ba83df328c8003419c0162 /scripts/kconfig/conf.c | |
parent | eaaae38c1ac4ccbec6d2de7255b0538f38fb29d6 (diff) | |
download | linux-40aee729b350672c2550640622416a855e27938f.tar.xz |
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.c | 3 |
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) printf("%*s%s\n", indent - 1, "", menu_get_prompt(menu)); def_sym = sym_get_choice_value(sym); cnt = def = 0; - line[0] = '0'; - line[1] = 0; + line[0] = 0; for (child = menu->list; child; child = child->next) { if (!menu_is_visible(child)) continue; |