- fix crash in http_request_prepare() when HttpRequest::addHeaders(array("foo"))...
authorMichael Wallner <mike@php.net>
Sun, 5 Nov 2006 17:39:40 +0000 (17:39 +0000)
committerMichael Wallner <mike@php.net>
Sun, 5 Nov 2006 17:39:40 +0000 (17:39 +0000)
http_request_api.c

index f62881b1bf6b20a739595548370e87790485656c..b2f997bc70eb10fd2df4338e9ee7398ecbd35048 100644 (file)
@@ -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;