httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1442309 - /httpd/httpd/trunk/modules/slotmem/mod_slotmem_shm.c
Date Mon, 04 Feb 2013 19:37:18 GMT
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;
 



Mime
View raw message