]> granicus.if.org Git - apache/commitdiff
Initialize apr_thread_t pointer to NULL so that apr_os_thread_put()
authorJeff Trawick <trawick@apache.org>
Sat, 2 Jul 2011 18:53:29 +0000 (18:53 +0000)
committerJeff Trawick <trawick@apache.org>
Sat, 2 Jul 2011 18:53:29 +0000 (18:53 +0000)
allocates a new one.  This resolves a crash seen on WinXP, caused
by r1103595.

Bad revision found by: Gregg L Smith <gls gknw.net>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1142264 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/winnt/child.c

index 299b9b3f301d9d2348a88e9396cc8ec3d7212d7d..ea2207fe9820fbbf2e4dfdd3e12b806c4f31e865 100644 (file)
@@ -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;