]> granicus.if.org Git - php/commitdiff
init variables
authorAntony Dovgal <tony2001@php.net>
Tue, 20 Jun 2006 13:28:02 +0000 (13:28 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 20 Jun 2006 13:28:02 +0000 (13:28 +0000)
Zend/zend_API.c
ext/pdo/pdo_stmt.c

index 06a6bfd0048144ca0d724e8903b0f77ada479c5f..bf3a88fc849e9f0bc6602dace92dd7337198b9cf 100644 (file)
@@ -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) {
index ef8abd6e65a5e3da5e9fd2d132d3a2777485f81a..3f45e4762ebcbcb791d9636747ea312d4acc6d28 100755 (executable)
@@ -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) {