From b53b76335fec48b04b2357d05f81e9db593868f4 Mon Sep 17 00:00:00 2001 From: Dan Kalowsky Date: Fri, 26 Jul 2002 17:08:05 +0000 Subject: forgot to make the same change to imap_get_quota... --- ext/imap/php_imap.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'ext/imap/php_imap.c') diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index 0b8a357bc3..2685d5b9cf 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -1091,12 +1091,8 @@ PHP_FUNCTION(imap_get_quota) RETURN_FALSE; } - if (array_init(return_value) == FAILURE) { - php_error(E_WARNING, "Unable to allocate array memory"); - RETURN_FALSE; - } - - add_next_index_zval(return_value, IMAPG(quota_return)); + *return_value = *IMAPG(quota_return); + FREE_ZVAL(IMAPG(quota_return)); } /* }}} */ -- cgit v1.2.1