Skip to content

Commit

Permalink
#1279 - CID 1367531: Uninitialized members (UNINIT_CTOR): proxy/main.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
bryancall committed Jan 26, 2017
1 parent 8e8a4b4 commit e0a4e6e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion proxy/Main.cc
Expand Up @@ -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)
Expand Down

0 comments on commit e0a4e6e

Please sign in to comment.