From: Michael Wallner Date: Sun, 11 Dec 2005 11:32:36 +0000 (+0000) Subject: - use add_next_index_string() X-Git-Tag: RELEASE_0_20_0~26 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=972ca5d090e58c286df44bf4308a6eac1dbae896;p=m6w6%2Fext-http - use add_next_index_string() # $coffee++; --- diff --git a/http_request_api.c b/http_request_api.c index 5c5d67c..9cbe109 100644 --- a/http_request_api.c +++ b/http_request_api.c @@ -146,10 +146,7 @@ PHP_MSHUTDOWN_FUNCTION(http_request) MAKE_STD_ZVAL(subarray); \ array_init(subarray); \ for (p = l; p; p = p->next) { \ - zval *entry; \ - MAKE_STD_ZVAL(entry); \ - ZVAL_STRING(entry, p->data, 1); \ - add_next_index_zval(subarray, entry); \ + add_next_index_string(subarray, p->data, 1); \ } \ add_assoc_zval(&array, pretty_key(http_request_data_copy(COPY_STRING, #X), sizeof(#X)-1, 0, 0), subarray); \ curl_slist_free_all(l); \