summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Jones <sixd@php.net>2010-04-24 00:44:56 +0000
committerChristopher Jones <sixd@php.net>2010-04-24 00:44:56 +0000
commitfd42b5064c497e500e5745bf36d1b0ddd5bd34bd (patch)
treea28cf6f3cf1ddf718ae9cfe1e17f535fd2c033d5
parent3d1e73eb829dd4b2475c740b3e7f3e57de46efca (diff)
downloadphp-git-fd42b5064c497e500e5745bf36d1b0ddd5bd34bd.tar.gz
Initialize vars to prevent valgrind warnings in some cases
-rw-r--r--ext/oci8/oci8_statement.c3
1 files changed, 3 insertions, 0 deletions
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,