From: Derick Rethans Date: Sat, 20 Apr 2002 18:33:54 +0000 (+0000) Subject: - initialize globals properly X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~537 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6075a65319b41735d0bd3741177be719da96b3db;p=php - initialize globals properly --- diff --git a/ext/recode/recode.c b/ext/recode/recode.c index 048b4f4896..8c17b5f76c 100644 --- a/ext/recode/recode.c +++ b/ext/recode/recode.c @@ -75,8 +75,15 @@ extern void timeout(int sig); ZEND_GET_MODULE(recode) #endif +static void php_recode_init_globals (zend_recode_globals *rg) +{ + rg->outer = NULL; +} + PHP_MINIT_FUNCTION(recode) { + ZEND_INIT_MODULE_GLOBALS(recode, php_recode_init_globals, NULL); + ReSG(outer) = recode_new_outer(true); if (ReSG(outer) == NULL) return FAILURE;