From c98f30321002b07250628076e283fb018ef60ab8 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Sat, 2 Jul 2011 18:53:29 +0000 Subject: [PATCH] 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 --- server/mpm/winnt/child.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/mpm/winnt/child.c b/server/mpm/winnt/child.c index 299b9b3f30..ea2207fe98 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; -- 2.40.0