From: Antony Dovgal Date: Tue, 20 Jun 2006 13:28:02 +0000 (+0000) Subject: init variables X-Git-Tag: RELEASE_1_0_0RC1~2688 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=59e16e52de97878b84c54c554e7b3f7873a05bb8;p=php init variables --- diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 06a6bfd004..bf3a88fc84 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -2949,8 +2949,8 @@ ZEND_API int zend_fcall_info_args(zend_fcall_info *fci, zval *args TSRMLS_DC) ZEND_API int zend_fcall_info_call(zend_fcall_info *fci, zend_fcall_info_cache *fcc, zval **retval_ptr_ptr, zval *args TSRMLS_DC) { - zval *retval, ***org_params; - int result, org_count; + zval *retval, ***org_params = NULL; + int result, org_count = 0; fci->retval_ptr_ptr = retval_ptr_ptr ? retval_ptr_ptr : &retval; if (args) { diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index ef8abd6e65..3f45e4762e 100755 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -759,9 +759,9 @@ static int do_fetch_opt_finish(pdo_stmt_t *stmt, int free_ctor_agrs TSRMLS_DC) / static int do_fetch(pdo_stmt_t *stmt, int do_bind, zval *return_value, enum pdo_fetch_type how, enum pdo_fetch_orientation ori, long offset, zval *return_all TSRMLS_DC) /* {{{ */ { - int flags = how & PDO_FETCH_FLAGS, idx, old_arg_count; - zend_class_entry * ce, * old_ce; - zval grp_val, *grp, **pgrp, *retval, *old_ctor_args; + int flags = how & PDO_FETCH_FLAGS, idx, old_arg_count = 0; + zend_class_entry *ce = NULL, *old_ce = NULL; + zval grp_val, *grp, **pgrp, *retval, *old_ctor_args = NULL; how = how & ~PDO_FETCH_FLAGS; if (how == PDO_FETCH_USE_DEFAULT) {