]> granicus.if.org Git - php/commitdiff
MFH: ocibind: avoid warning in debug mode
authorThies C. Arntzen <thies@php.net>
Sat, 13 Apr 2002 18:59:38 +0000 (18:59 +0000)
committerThies C. Arntzen <thies@php.net>
Sat, 13 Apr 2002 18:59:38 +0000 (18:59 +0000)
ext/oci8/oci8.c

index c0eedc83938ad12b17aa808fdc46e53c3baf3bd7..68e3d411425c21981f8d1272f7ae4169a8c3f838 100644 (file)
@@ -697,6 +697,7 @@ _oci_bind_post_exec(void *data TSRMLS_DC)
 
        if (bind->indicator == -1) { /* NULL */
                zval *val = bind->zval;
+               *Z_STRVAL_P(val) = '\0'; /* XXX avoid warning in debug mode */
                zval_dtor(val);
                ZVAL_NULL(val);
        } else if (Z_TYPE_P(bind->zval) == IS_STRING && (Z_STRVAL_P(bind->zval) != empty_string)) {