svn: /php/php-src/ branches/PHP_5_3/ext/oci8/oci8_statement.c trunk/ext/oci8/oci8_statement.c
| From: | Christopher Jones | Date: | Sat, 24 Apr 2010 00:44:56 +0000 |
| Subject: | svn: /php/php-src/ branches/PHP_5_3/ext/oci8/oci8_statement.c trunk/ext/oci8/oci8_statement.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-62394@lists.php.net to get a copy of this message | ||
sixd Sat, 24 Apr 2010 00:44:56 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=298404
Log:
Initialize vars to prevent valgrind warnings in some cases
Changed paths:
U php/php-src/branches/PHP_5_3/ext/oci8/oci8_statement.c
U php/php-src/trunk/ext/oci8/oci8_statement.c
Modified: php/php-src/branches/PHP_5_3/ext/oci8/oci8_statement.c
===================================================================
--- php/php-src/branches/PHP_5_3/ext/oci8/oci8_statement.c 2010-04-23 22:57:50 UTC (rev 298403)
+++ php/php-src/branches/PHP_5_3/ext/oci8/oci8_statement.c 2010-04-24 00:44:56 UTC (rev 298404)
@@ -1457,6 +1457,9 @@
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,
Modified: php/php-src/trunk/ext/oci8/oci8_statement.c
===================================================================
--- php/php-src/trunk/ext/oci8/oci8_statement.c 2010-04-23 22:57:50 UTC (rev 298403)
+++ php/php-src/trunk/ext/oci8/oci8_statement.c 2010-04-24 00:44:56 UTC (rev 298404)
@@ -1457,6 +1457,9 @@
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,