forked from mirrors/linux
		
	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>
This commit is contained in:
		
							parent
							
								
									eaaae38c1a
								
							
						
					
					
						commit
						40aee729b3
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
					@ -328,8 +328,7 @@ static int conf_choice(struct menu *menu)
 | 
				
			||||||
		printf("%*s%s\n", indent - 1, "", menu_get_prompt(menu));
 | 
							printf("%*s%s\n", indent - 1, "", menu_get_prompt(menu));
 | 
				
			||||||
		def_sym = sym_get_choice_value(sym);
 | 
							def_sym = sym_get_choice_value(sym);
 | 
				
			||||||
		cnt = def = 0;
 | 
							cnt = def = 0;
 | 
				
			||||||
		line[0] = '0';
 | 
							line[0] = 0;
 | 
				
			||||||
		line[1] = 0;
 | 
					 | 
				
			||||||
		for (child = menu->list; child; child = child->next) {
 | 
							for (child = menu->list; child; child = child->next) {
 | 
				
			||||||
			if (!menu_is_visible(child))
 | 
								if (!menu_is_visible(child))
 | 
				
			||||||
				continue;
 | 
									continue;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue