]> granicus.if.org Git - php/commitdiff
Fixed a crash inside ncurses_panel_above() when called prior to
authorIlia Alshanetsky <iliaa@php.net>
Thu, 7 Jun 2007 02:29:44 +0000 (02:29 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 7 Jun 2007 02:29:44 +0000 (02:29 +0000)
ncurses_init()

ext/ncurses/ncurses_functions.c

index d0cb3825ae740f4d2f01dbebed55eb3170893eeb..db71779dd3094ab5c61305924de88ec1046f9b3d 100644 (file)
@@ -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);
        }