From: Fredrik Öhrn Date: Mon, 19 Mar 2001 17:01:36 +0000 (+0000) Subject: Removed redundant initialization. X-Git-Tag: php-4.0.6RC1~650 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=98b5ca057b36b35f55d040cb94ecd3910fef69de;p=php Removed redundant initialization. --- diff --git a/ext/yp/yp.c b/ext/yp/yp.c index bbed3ef273..cc7319ef5e 100644 --- a/ext/yp/yp.c +++ b/ext/yp/yp.c @@ -349,17 +349,10 @@ PHP_FUNCTION(yp_err_string) { } /* }}} */ -static void php_yp_init_globals(YPLS_D) -{ - YP(error) = 0; -} - PHP_MINIT_FUNCTION(yp) { #ifdef ZTS - yp_globals_id = ts_allocate_id(sizeof(php_yp_globals), (ts_allocate_ctor) php_yp_init_globals, NULL); -#else - php_yp_init_globals(YPLS_C); + yp_globals_id = ts_allocate_id(sizeof(php_yp_globals), NULL, NULL); #endif REGISTER_LONG_CONSTANT("YPERR_BADARGS", YPERR_BADARGS, CONST_CS | CONST_PERSISTENT);