From a1c83f0bcf898a5cd751d0010268c1d63ef8a66c Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Sun, 5 Nov 2006 17:39:40 +0000 Subject: [PATCH] - fix crash in http_request_prepare() when HttpRequest::addHeaders(array("foo")) was used --- http_request_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2