Bug 1228339 - Initialize members in class. r=jseward
authorBogdan Postelnicu <bogdan.postelnicu@softvision.ro>
Wed, 02 Dec 2015 02:50:00 +0100
changeset 309398 984115c3af750b37c549642760c7802d8f531a08
parent 309397 057bd9e7316e0e569f66ac972c9566401ec33ef2
child 309399 fd03238ebdb51450e42a76d188fae5ed0bfbb066
push id5513
push userraliiev@mozilla.com
push dateMon, 25 Jan 2016 13:55:34 +0000
treeherdermozilla-beta@5ee97dd05b5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjseward
bugs1228339
milestone45.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1228339 - Initialize members in class. r=jseward
tools/profiler/lul/LulElf.cpp
--- a/tools/profiler/lul/LulElf.cpp
+++ b/tools/profiler/lul/LulElf.cpp
@@ -115,17 +115,17 @@ class FDWrapper {
 
 //
 // MmapWrapper
 //
 // Wrapper class to make sure mapped regions are unmapped.
 //
 class MmapWrapper {
  public:
-  MmapWrapper() : is_set_(false) {}
+  MmapWrapper() : is_set_(false), base_(NULL), size_(0){}
   ~MmapWrapper() {
     if (is_set_ && base_ != NULL) {
       MOZ_ASSERT(size_ > 0);
       munmap(base_, size_);
     }
   }
   void set(void *mapped_address, size_t mapped_size) {
     is_set_ = true;