From 20b5c66e14838928b656419144020ce415e3b25a Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Thu, 7 Jun 2007 02:29:44 +0000 Subject: [PATCH] Fixed a crash inside ncurses_panel_above() when called prior to ncurses_init() --- ext/ncurses/ncurses_functions.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.40.0