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

index 331f34b2ec835133b1a346babc30dcea4bbe37ee..72e7b51f3b572e3c8f5f492610175234a79d1d00 100644 (file)
@@ -2338,12 +2338,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);