]> granicus.if.org Git - php/commitdiff
Initialize vars to prevent valgrind warnings in some cases
authorChristopher Jones <sixd@php.net>
Sat, 24 Apr 2010 00:44:56 +0000 (00:44 +0000)
committerChristopher Jones <sixd@php.net>
Sat, 24 Apr 2010 00:44:56 +0000 (00:44 +0000)
ext/oci8/oci8_statement.c

index f7fda511a75eaa056a822d46070b76ff18199ff5..fc7296fb3ccc601b090fb75867289336c1a0e1bf 100644 (file)
@@ -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,