summaryrefslogtreecommitdiff
path: root/ext/iconv
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2018-01-26 22:28:48 +0100
committerNikita Popov <nikita.ppv@gmail.com>2018-01-26 22:28:48 +0100
commitfd255b8878b5e798e256c13b1e05a7e55fea38e8 (patch)
tree2fe9810c5ec124fb31525a5f919c1b28f55af0ba /ext/iconv
parentaad12cb49c300a578d212d3f3e0fa00f6688161c (diff)
parentaad76a9b79e502a8ebc68b79d62e9009d4aba5b3 (diff)
downloadphp-git-fd255b8878b5e798e256c13b1e05a7e55fea38e8.tar.gz
Merge branch 'PHP-7.1' into PHP-7.2
Diffstat (limited to 'ext/iconv')
-rw-r--r--ext/iconv/iconv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c
index ec74585a00..9236066df4 100644
--- a/ext/iconv/iconv.c
+++ b/ext/iconv/iconv.c
@@ -559,6 +559,8 @@ PHP_ICONV_API php_iconv_err_t php_iconv_string(const char *in_p, size_t in_len,
size_t result;
zend_string *ret, *out_buffer;
+ *out = NULL;
+
/*
This is not the right way to get output size...
This is not space efficient for large text.