From: Antony Dovgal Date: Thu, 27 Sep 2007 09:18:36 +0000 (+0000) Subject: fix coverity issue #412 X-Git-Tag: RELEASE_2_0_0a1~1744 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=22dff490b0075d9ae116eb3d2a9670b9ea5641f7;p=php fix coverity issue #412 --- diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index 331f34b2ec..72e7b51f3b 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -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);