MemoryModel: init in ctor

CID 717211: Uninitialized scalar field (UNINIT_CTOR)
At (18): Non-static class member field "last.mmap" is not initialized in this constructor nor in any functions that it calls.

Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Sage Weil 2012-09-27 17:49:44 -07:00
parent 8d4e6e2a4c
commit bdadc4eca6

View File

@ -29,6 +29,10 @@ public:
int heap, malloc, mmap;
snap() : peak(0), size(0), hwm(0), rss(0), data(0), lib(0),
heap(0), malloc(0), mmap(0)
{}
int get_total() { return size; }
int get_rss() { return rss; }
int get_heap() { return heap; }