From: Michael Wallner Date: Sun, 5 Nov 2006 17:39:40 +0000 (+0000) Subject: - fix crash in http_request_prepare() when HttpRequest::addHeaders(array("foo"))... X-Git-Tag: RELEASE_1_4_0RC1~25 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=a1c83f0bcf898a5cd751d0010268c1d63ef8a66c - fix crash in http_request_prepare() when HttpRequest::addHeaders(array("foo")) was used --- diff --git a/http_request_api.c b/http_request_api.c index f62881b..b2f997b 100644 --- a/http_request_api.c +++ b/http_request_api.c @@ -618,7 +618,7 @@ PHP_HTTP_API STATUS _http_request_prepare(http_request *request, HashTable *opti request->_cache.headers = NULL; } if ((zoption = http_request_option(request, options, "headers", IS_ARRAY))) { - char *header_key; + char *header_key = NULL; ulong header_idx; HashPosition pos;