summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2007-06-07 02:29:44 +0000
committerIlia Alshanetsky <iliaa@php.net>2007-06-07 02:29:44 +0000
commit20b5c66e14838928b656419144020ce415e3b25a (patch)
tree4671181e9de5daeef92809eb3b623ea736ef7e73
parent594fe5c398f0d137e1310798d24488dbc1a834e7 (diff)
downloadphp-git-20b5c66e14838928b656419144020ce415e3b25a.tar.gz
Fixed a crash inside ncurses_panel_above() when called prior to
ncurses_init()
-rw-r--r--ext/ncurses/ncurses_functions.c1
1 files changed, 1 insertions, 0 deletions
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);
}