]> granicus.if.org Git - apache/commitdiff
Fix valgrind warning about uninitialized memory in argument to semctl
authorStefan Fritsch <sf@apache.org>
Mon, 4 Feb 2013 20:15:10 +0000 (20:15 +0000)
committerStefan Fritsch <sf@apache.org>
Mon, 4 Feb 2013 20:15:10 +0000 (20:15 +0000)
PR: 53690
Submitted by: Mikhail T. <mi+apache aldan algebra com>

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

CHANGES
os/unix/unixd.c

diff --git a/CHANGES b/CHANGES
index b7c0cbc7b9cdd0569ad7ad5eae72eafe86fafd26..b6d1469e2677fdcd806d9ffd8f6e707a6dfa1dc1 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
 
+  *) core: Fix valgrind warning about uninitialized memory in argument to
+     semctl. PR 53690. [Mikhail T. <mi+apache aldan algebra com>]
+
   *) mod_proxy_connect: Don't keepalive the connection to the client if the
      backend closes the connection. PR 54474. [Pavel Mateja <pavel netsafe cz>]
 
index 2a953f0f385f1607b8e7293312899848eafaec1c..a86630f39b4c750728677076f990fa1ab0897521 100644 (file)
@@ -241,7 +241,7 @@ AP_DECLARE(apr_status_t) ap_unixd_set_proc_mutex_perms(apr_proc_mutex_t *pmutex)
             };
 #endif
             union semun ick;
-            struct semid_ds buf;
+            struct semid_ds buf = { { 0 } };
 
             apr_os_proc_mutex_get(&ospmutex, pmutex);
             buf.sem_perm.uid = ap_unixd_config.user_id;