]> granicus.if.org Git - apache/commitdiff
Fix a reference to an uninitialized pointer in util_ldap_cache_init().
authorJeff Trawick <trawick@apache.org>
Wed, 28 Aug 2002 19:16:00 +0000 (19:16 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 28 Aug 2002 19:16:00 +0000 (19:16 +0000)
PR:                12091
Submitted by:      Jess Holle <jessh@ptc.com>
Reviewed by:    Jeff Trawick

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

modules/experimental/util_ldap_cache.c

index 0414f4d4e7b6e1ae88db82439b80eb5e619b615d..47b0ff17ae4bf0a21a5349165eb03142bd9c31c7 100644 (file)
@@ -292,8 +292,6 @@ apr_status_t util_ldap_cache_module_kill(void *data)
 
 apr_status_t util_ldap_cache_init(apr_pool_t *pool, apr_size_t reqsize)
 {
-    apr_anylock_t rmm_lock;
-
 #if APR_HAS_SHARED_MEMORY
     apr_status_t result;
 
@@ -303,7 +301,7 @@ apr_status_t util_ldap_cache_init(apr_pool_t *pool, apr_size_t reqsize)
     }
 
     /* This will create a rmm "handler" to get into the shared memory area */
-    apr_rmm_init(&util_ldap_rmm, &rmm_lock, 
+    apr_rmm_init(&util_ldap_rmm, NULL,
                        (void *)apr_shm_baseaddr_get(util_ldap_shm), reqsize, pool);
 #endif