From: Ilia Alshanetsky Date: Thu, 7 Jun 2007 02:29:44 +0000 (+0000) Subject: Fixed a crash inside ncurses_panel_above() when called prior to X-Git-Tag: php-5.2.4RC1~391 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=20b5c66e14838928b656419144020ce415e3b25a;p=php Fixed a crash inside ncurses_panel_above() when called prior to ncurses_init() --- diff --git a/ext/ncurses/ncurses_functions.c b/ext/ncurses/ncurses_functions.c index d0cb3825ae..db71779dd3 100644 --- a/ext/ncurses/ncurses_functions.c +++ b/ext/ncurses/ncurses_functions.c @@ -2373,6 +2373,7 @@ PHP_FUNCTION(ncurses_panel_above) FETCH_PANEL(panel, &phandle); above = panel_above(*panel); } else { + IS_NCURSES_INITIALIZED(); above = panel_above((PANEL *)0); }