Messages in this thread Patch in this message | | | Date | Sun, 9 Apr 2006 17:26:39 +0200 (CEST) | From | Roman Zippel <> | Subject | [PATCH 1/19] 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>
---
scripts/kconfig/conf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Index: linux-2.6-git/scripts/kconfig/conf.c =================================================================== --- linux-2.6-git.orig/scripts/kconfig/conf.c +++ linux-2.6-git/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; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |