You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2017/01/26 02:31:27 UTC

[trafficserver] branch 7.1.x updated: #1279 - CID 1367531: Uninitialized members (UNINIT_CTOR): proxy/main.cc

This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 7.1.x
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

The following commit(s) were added to refs/heads/7.1.x by this push:
       new  f0a1f21   #1279 - CID 1367531: Uninitialized members (UNINIT_CTOR): proxy/main.cc
f0a1f21 is described below

commit f0a1f21154866d9aa293a57798dea1c698ec7b2d
Author: Bryan Call <bc...@apache.org>
AuthorDate: Wed Jan 25 10:28:53 2017 +0900

    #1279 - CID 1367531: Uninitialized members (UNINIT_CTOR): proxy/main.cc
    
    (cherry picked from commit e0a4e6e9d7af17c27151732e19bb1975fc29c570)
---
 proxy/Main.cc | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/proxy/Main.cc b/proxy/Main.cc
index c4e859a..6937626 100644
--- a/proxy/Main.cc
+++ b/proxy/Main.cc
@@ -349,7 +349,11 @@ public:
 class MemoryLimit : public Continuation
 {
 public:
-  MemoryLimit() : Continuation(new_ProxyMutex()), _memory_limit(0) { SET_HANDLER(&MemoryLimit::periodic); }
+  MemoryLimit() : Continuation(new_ProxyMutex()), _memory_limit(0)
+  {
+    memset(&_usage, 0, sizeof(_usage));
+    SET_HANDLER(&MemoryLimit::periodic);
+  }
   ~MemoryLimit() { mutex = NULL; }
   int
   periodic(int event, Event *e)

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].