kconfig: fix default value for choice input
authorRoman Zippel <zippel@linux-m68k.org>
Sun, 9 Apr 2006 15:26:39 +0000 (17:26 +0200)
committerSam Ravnborg <sam@mars.ravnborg.org>
Tue, 11 Apr 2006 11:41:06 +0000 (13:41 +0200)
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>
scripts/kconfig/conf.c

index 10eeae53d827f904a440c812af8febd13c891776..b86c64f90c943676c45f8e814f3a86953b3a5e50 100644 (file)
@@ -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;