From 0c376684c73c575cb8a694ee458a56eba1c602d8 Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Sat, 17 May 2003 07:55:18 +0000 Subject: Initialize all zend_file_handle instances properly --- main/php_ini.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'main/php_ini.c') diff --git a/main/php_ini.c b/main/php_ini.c index 2be3459577..c30818965b 100644 --- a/main/php_ini.c +++ b/main/php_ini.c @@ -236,7 +236,7 @@ int php_init_config() int safe_mode_state; char *open_basedir; int free_ini_search_path=0; - zend_file_handle fh; + zend_file_handle fh = {0}; struct stat sb; char ini_file[MAXPATHLEN]; char *p; @@ -347,7 +347,6 @@ int php_init_config() PG(safe_mode) = 0; PG(open_basedir) = NULL; - memset(&fh, 0, sizeof(fh)); /* Check if php_ini_path_override is a file */ if (!sapi_module.php_ini_ignore) { if (sapi_module.php_ini_path_override && sapi_module.php_ini_path_override[0]) { -- cgit v1.2.1