changeset 966:d9acb7f2a3d1

Do not set Curses variable too early This patch fixes a freeze when scr_LogPrint() is called before ncurses are fully initialized, for example when the colors are wrong in the config file. Problem reported by Jeff~ in the mcabber MUC room.
author Mikael Berthe <mikael@lilotux.net>
date Thu, 28 Sep 2006 21:36:58 +0200
parents 1bdf0f1b16c0
children 303408ef5e5d 1574f5a4c264
files mcabber/src/screen.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/src/screen.c	Wed Sep 27 22:57:23 2006 +0200
+++ b/mcabber/src/screen.c	Thu Sep 28 21:36:58 2006 +0200
@@ -305,7 +305,6 @@
   intrflush(stdscr, FALSE);
   start_color();
   use_default_colors();
-  Curses = TRUE;
 
   ParseColors();
 
@@ -317,6 +316,7 @@
   inputLine[0] = 0;
   ptr_inputline = inputLine;
 
+  Curses = TRUE;
   return;
 }