1
0
mirror of https://github.com/php/php-src.git synced 2026-04-02 05:32:28 +02:00

fix coverity issue #412

This commit is contained in:
Antony Dovgal
2007-09-27 09:18:36 +00:00
parent 4919bc45c5
commit 22dff490b0

View 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);