You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by sf...@apache.org on 2013/02/04 20:37:18 UTC

svn commit: r1442309 - /httpd/httpd/trunk/modules/slotmem/mod_slotmem_shm.c

Author: sf
Date: Mon Feb  4 19:37:18 2013
New Revision: 1442309

URL: http://svn.apache.org/viewvc?rev=1442309&view=rev
Log:
fix valgrind warnings about uninitialized memory in syscall arguments

Modified:
    httpd/httpd/trunk/modules/slotmem/mod_slotmem_shm.c

Modified: httpd/httpd/trunk/modules/slotmem/mod_slotmem_shm.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/slotmem/mod_slotmem_shm.c?rev=1442309&r1=1442308&r2=1442309&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/slotmem/mod_slotmem_shm.c (original)
+++ httpd/httpd/trunk/modules/slotmem/mod_slotmem_shm.c Mon Feb  4 19:37:18 2013
@@ -91,7 +91,7 @@ static apr_status_t unixd_set_shm_perms(
 {
 #ifdef AP_NEED_SET_MUTEX_PERMS
 #if APR_USE_SHMEM_SHMGET || APR_USE_SHMEM_SHMGET_ANON
-    struct shmid_ds shmbuf;
+    struct shmid_ds shmbuf = { { 0 } };
     key_t shmkey;
     int shmid;