From 65aa43059742e6a0c7901f78cd645e6cba85d077 Mon Sep 17 00:00:00 2001
From: Jeff Trawick <trawick@apache.org>
Date: Thu, 12 Feb 2009 21:40:20 +0000
Subject: [PATCH] Fix a crash with r742218 by calling apr_os_thread_put()
 properly.

(The first parameter to apr_os_thread_put() must be initialized, either to
NULL or to an existing apr_thread_t.)



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@743894 13f79535-47bb-0310-9956-ffa450edef68
---
 server/mpm/prefork/prefork.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/mpm/prefork/prefork.c b/server/mpm/prefork/prefork.c
index 8eb584e115..d7157371d8 100644
--- a/server/mpm/prefork/prefork.c
+++ b/server/mpm/prefork/prefork.c
@@ -432,7 +432,7 @@ static int num_listensocks = 0;
 static void child_main(int child_num_arg)
 {
 #if APR_HAS_THREADS
-    apr_thread_t *thd;
+    apr_thread_t *thd = NULL;
     apr_os_thread_t osthd;
 #endif
     apr_pool_t *ptrans;
-- 
2.40.0