From: Christopher Jones Date: Sat, 24 Apr 2010 00:44:56 +0000 (+0000) Subject: Initialize vars to prevent valgrind warnings in some cases X-Git-Tag: php-5.3.3RC1~269 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb0a3ff1af273d916258b2c59fa3289d5585dc13;p=php Initialize vars to prevent valgrind warnings in some cases --- diff --git a/ext/oci8/oci8_statement.c b/ext/oci8/oci8_statement.c index f7fda511a7..fc7296fb3c 100644 --- a/ext/oci8/oci8_statement.c +++ b/ext/oci8/oci8_statement.c @@ -1457,6 +1457,9 @@ int php_oci_bind_array_by_name(php_oci_statement *statement, char *name, int nam bindp->bind = NULL; bindp->zval = var; bindp->array.type = type; + bindp->indicator = 0; /* not used for array binds */ + bindp->type = 0; /* not used for array binds */ + zval_add_ref(&var); PHP_OCI_CALL_RETURN(statement->errcode,