]> granicus.if.org Git - php/commitdiff
MFH: fix coverity issue #412
authorAntony Dovgal <tony2001@php.net>
Thu, 27 Sep 2007 09:19:06 +0000 (09:19 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 27 Sep 2007 09:19:06 +0000 (09:19 +0000)
ext/iconv/iconv.c

index 2da0cd7998b16cf9637f1a4410a16e67dda0e300..56aba6cfe2aaea1ed178834d3ddb156025a75a61 100644 (file)
@@ -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);