From e0a4e6e9d7af17c27151732e19bb1975fc29c570 Mon Sep 17 00:00:00 2001 From: Bryan Call Date: Wed, 25 Jan 2017 10:28:53 +0900 Subject: [PATCH] #1279 - CID 1367531: Uninitialized members (UNINIT_CTOR): proxy/main.cc --- proxy/Main.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/proxy/Main.cc b/proxy/Main.cc index c4e859addee..6937626dc7b 100644 --- a/proxy/Main.cc +++ b/proxy/Main.cc @@ -349,7 +349,11 @@ class DiagsLogContinuation : public Continuation 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)