Skip to content

Commit 160b595

Browse files
committed
Fix(write): string
1 parent 95fc742 commit 160b595

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

kernel/write.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ void type_writer(zval *value, zend_long row, zend_long columns, xls_resource_wri
2525
zend_uchar value_type = Z_TYPE_P(value);
2626

2727
if (value_type == IS_STRING) {
28-
zend_string *_zstr_val = zval_get_string(value);
29-
worksheet_write_string(res->worksheet, lxw_row, lxw_col, ZSTR_VAL(_zstr_val), format_handle);
30-
zend_string_release(_zstr_val);
28+
worksheet_write_string(res->worksheet, lxw_row, lxw_col, ZSTR_VAL(zval_get_string(value)), format_handle);
3129
return;
3230
}
3331

0 commit comments

Comments
 (0)