From: Jeff Trawick Date: Sat, 2 Jul 2011 18:53:29 +0000 (+0000) Subject: Initialize apr_thread_t pointer to NULL so that apr_os_thread_put() X-Git-Tag: 2.3.14^2~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c98f30321002b07250628076e283fb018ef60ab8;p=thirdparty%2Fapache%2Fhttpd.git Initialize apr_thread_t pointer to NULL so that apr_os_thread_put() allocates a new one. This resolves a crash seen on WinXP, caused by r1103595. Bad revision found by: Gregg L Smith git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1142264 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/winnt/child.c b/server/mpm/winnt/child.c index 299b9b3f301..ea2207fe982 100644 --- a/server/mpm/winnt/child.c +++ b/server/mpm/winnt/child.c @@ -728,7 +728,7 @@ static winnt_conn_ctx_t *winnt_get_connection(winnt_conn_ctx_t *context) */ static DWORD __stdcall worker_main(void *thread_num_val) { - apr_thread_t *thd; + apr_thread_t *thd = NULL; apr_os_thread_t osthd; static int requests_this_child = 0; winnt_conn_ctx_t *context = NULL;