mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	kconfig: initialize the screen before using curses(3) functions
This is needed on non ncurses based implementation to get a properly initialized `stdscr' in main(). Cc: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
This commit is contained in:
		
							parent
							
								
									668cdedfdb
								
							
						
					
					
						commit
						d0e1e09568
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -888,6 +888,8 @@ int main(int ac, char **av)
 | 
				
			||||||
			single_menu_mode = 1;
 | 
								single_menu_mode = 1;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						initscr();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	getyx(stdscr, saved_y, saved_x);
 | 
						getyx(stdscr, saved_y, saved_x);
 | 
				
			||||||
	if (init_dialog(NULL)) {
 | 
						if (init_dialog(NULL)) {
 | 
				
			||||||
		fprintf(stderr, N_("Your display is too small to run Menuconfig!\n"));
 | 
							fprintf(stderr, N_("Your display is too small to run Menuconfig!\n"));
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue