Skip to content

CID 1367531: Uninitialized members (UNINIT_CTOR): proxy/main.cc #1279

Description

@zwoop
*** CID 1367531:  Uninitialized members  (UNINIT_CTOR)
/proxy/Main.cc: 352 in MemoryLimit::MemoryLimit()()
346       }
347     };
348     
349     class MemoryLimit : public Continuation
350     {
351     public:
   CID 1367531:  Uninitialized members  (UNINIT_CTOR)
   Non-static class member field "_usage.ru_stime" is not initialized in this constructor nor in any functions that it calls.
352       MemoryLimit() : Continuation(new_ProxyMutex()), _memory_limit(0) { SET_HANDLER(&MemoryLimit::periodic); }
353       ~MemoryLimit() { mutex = NULL; }
354       int
355       periodic(int event, Event *e)
356       {
357         if (event == EVENT_IMMEDIATE) {

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions