]> granicus.if.org Git - apache/commitdiff
fix valgrind warnings about uninitialized memory in syscall arguments
authorStefan Fritsch <sf@apache.org>
Mon, 4 Feb 2013 19:37:18 +0000 (19:37 +0000)
committerStefan Fritsch <sf@apache.org>
Mon, 4 Feb 2013 19:37:18 +0000 (19:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1442309 13f79535-47bb-0310-9956-ffa450edef68

modules/slotmem/mod_slotmem_shm.c

index ec089264508637c56e0a14ea3f0392e9ada8a3ad..aac96e23d6737afe2c37ea5b759491d139282cfc 100644 (file)
@@ -91,7 +91,7 @@ static apr_status_t unixd_set_shm_perms(const char *fname)
 {
 #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;