Skip to content

Commit aad76a9

Browse files
pprindevillenikic
authored andcommitted
Be consistent in clearing out in php_iconv_string()
1 parent f80e59a commit aad76a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/iconv/iconv.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,8 @@ PHP_ICONV_API php_iconv_err_t php_iconv_string(const char *in_p, size_t in_len,
563563
size_t result;
564564
zend_string *ret, *out_buffer;
565565

566+
*out = NULL;
567+
566568
/*
567569
This is not the right way to get output size...
568570
This is not space efficient for large text.

0 commit comments

Comments
 (0)