diff options
author | Antony Dovgal <tony2001@php.net> | 2007-09-27 09:18:50 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2007-09-27 09:18:50 +0000 |
commit | 84195223ecb36ae819df49843c532128c000ac0f (patch) | |
tree | f17c1d98a6e9fa9a7ddef23cb22c41f5a0a33dca /ext/iconv | |
parent | 7a954c4c481abf35ea269b193850a65717d26e92 (diff) | |
download | php-git-84195223ecb36ae819df49843c532128c000ac0f.tar.gz |
MFH: fix coverity issue #412
Diffstat (limited to 'ext/iconv')
-rw-r--r-- | ext/iconv/iconv.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index 2da0cd7998..56aba6cfe2 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -2271,12 +2271,10 @@ PHP_FUNCTION(iconv_mime_decode_headers) } if (header_name != NULL) { - zval **elem; + zval **elem, *new_elem; if (zend_hash_find(Z_ARRVAL_P(return_value), header_name, header_name_len, (void **)&elem) == SUCCESS) { if (Z_TYPE_PP(elem) != IS_ARRAY) { - zval *new_elem; - MAKE_STD_ZVAL(new_elem); array_init(new_elem); |