Explorar o código

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>
Arnaud Lacombe %!s(int64=16) %!d(string=hai) anos
pai
achega
d0e1e09568
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      scripts/kconfig/mconf.c

+ 2 - 0
scripts/kconfig/mconf.c

@@ -888,6 +888,8 @@ int main(int ac, char **av)
 			single_menu_mode = 1;
 	}
 
+	initscr();
+
 	getyx(stdscr, saved_y, saved_x);
 	if (init_dialog(NULL)) {
 		fprintf(stderr, N_("Your display is too small to run Menuconfig!\n"));