summaryrefslogtreecommitdiff
path: root/locks
diff options
context:
space:
mode:
authorjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2004-06-14 12:16:23 +0000
committerjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2004-06-14 12:16:23 +0000
commit47b0d7e2a40038da47543fdfaceeff104bfd5efd (patch)
tree234e50e3c1da4c3ef13f9279379c8fa4093114cb /locks
parentee5fbac8e7820af5e8b040514d824e4f1286f861 (diff)
downloadlibapr-47b0d7e2a40038da47543fdfaceeff104bfd5efd.tar.gz
* locks/unix/proc_mutex.c (apr_proc_mutex_create): Remove redundant
NULL-initialization of zero-initialized field; remove redundant cast. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65194 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'locks')
-rw-r--r--locks/unix/proc_mutex.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/locks/unix/proc_mutex.c b/locks/unix/proc_mutex.c
index 4156d537f..5de0040e3 100644
--- a/locks/unix/proc_mutex.c
+++ b/locks/unix/proc_mutex.c
@@ -765,13 +765,8 @@ APR_DECLARE(apr_status_t) apr_proc_mutex_create(apr_proc_mutex_t **mutex,
apr_proc_mutex_t *new_mutex;
apr_status_t rv;
- new_mutex = (apr_proc_mutex_t *)apr_pcalloc(pool,
- sizeof(apr_proc_mutex_t));
-
- new_mutex->pool = pool;
-#if APR_HAS_SYSVSEM_SERIALIZE || APR_HAS_FCNTL_SERIALIZE || APR_HAS_FLOCK_SERIALIZE || APR_HAS_POSIXSEM_SERIALIZE
- new_mutex->interproc = NULL;
-#endif
+ new_mutex = apr_pcalloc(pool, sizeof(apr_proc_mutex_t));
+ new_mutex->pool = pool;
if ((rv = proc_mutex_create(new_mutex, mech, fname)) != APR_SUCCESS)
return rv;