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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user