Skip to content

Commit 9f3110e

Browse files
author
Thies C. Arntzen
committed
fix newly introduced SEFAULT.
1 parent aee2ff3 commit 9f3110e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/oci8/oci8.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ _oci_bind_post_exec(void *data)
649649
zval *val = bind->zval;
650650
zval_dtor(val);
651651
ZVAL_NULL(val);
652-
} else if (bind->zval->type == IS_STRING) {
652+
} else if (bind->zval->type == IS_STRING && (bind->zval->value.str.val != empty_string)) {
653653
bind->zval->value.str.val = erealloc(bind->zval->value.str.val, bind->zval->value.str.len+1);
654654
bind->zval->value.str.val[ bind->zval->value.str.len ] = '\0';
655655
}

0 commit comments

Comments
 (0)