apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From INOUE Seiichiro <in...@ariel-networks.com>
Subject [PATCH] apr_thread_rwlock_create() on Win32 patch
Date Tue, 12 Mar 2002 14:14:57 GMT
Hi,
This is a simple bug, but it would cause a crash.
Please commit it.

Thanks.
=======
- INOUE Seiichiro <inoue@ariel-networks.com>
  http://www.ariel-networks.com


Index: locks/win32/thread_rwlock.c
===================================================================
RCS file: /home/cvspublic/apr/locks/win32/thread_rwlock.c,v
retrieving revision 1.4
diff -u -r1.4 thread_rwlock.c
--- locks/win32/thread_rwlock.c	29 Sep 2001 05:04:44 -0000	1.4
+++ locks/win32/thread_rwlock.c	12 Mar 2002 14:08:13 -0000
@@ -72,6 +72,7 @@
                                                    apr_pool_t *pool)
 {
     (*rwlock) = apr_palloc(pool, sizeof(**rwlock));
+    (*rwlock)->pool = pool;
     (*rwlock)->readevent=CreateEvent(NULL,TRUE,FALSE,NULL);
     (*rwlock)->mutex = CreateEvent(NULL,FALSE,TRUE,NULL);
     (*rwlock)->writemutex = CreateMutex(NULL,FALSE,NULL);

Mime
View raw message