Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40aee729 authored by Roman Zippel's avatar Roman Zippel Committed by Sam Ravnborg
Browse files

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: default avatarRoman Zippel <zippel@linux-m68k.org>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent eaaae38c
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;