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

index de507daf82b48bc2b739841eb2ac13946d4dddde..de448b6c4f7cdc6ba8dd3ef34eec8bdc4097bec8 100755 (executable)
@@ -836,9 +836,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) {