diff options
author | Roman Zippel <zippel@linux-m68k.org> | 2006-04-09 17:26:39 +0200 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2006-04-11 13:41:06 +0200 |
commit | 40aee729b350672c2550640622416a855e27938f (patch) | |
tree | 507ded045006d744d2ba83df328c8003419c0162 /scripts/kconfig | |
parent | eaaae38c1ac4ccbec6d2de7255b0538f38fb29d6 (diff) | |
download | op-kernel-dev-40aee729b350672c2550640622416a855e27938f.zip op-kernel-dev-40aee729b350672c2550640622416a855e27938f.tar.gz |
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')
-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 10eeae5..b86c64f 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; |