summaryrefslogtreecommitdiff
path: root/ext/iconv
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2007-09-27 09:18:50 +0000
committerAntony Dovgal <tony2001@php.net>2007-09-27 09:18:50 +0000
commit84195223ecb36ae819df49843c532128c000ac0f (patch)
treef17c1d98a6e9fa9a7ddef23cb22c41f5a0a33dca /ext/iconv
parent7a954c4c481abf35ea269b193850a65717d26e92 (diff)
downloadphp-git-84195223ecb36ae819df49843c532128c000ac0f.tar.gz
MFH: fix coverity issue #412
Diffstat (limited to 'ext/iconv')
-rw-r--r--ext/iconv/iconv.c4
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);