Bug 1228339 - initialize memebers in class. r=jseward
☠☠ backed out by cb2f99b42d57 ☠ ☠
authorBogdan Postelnicu <bogdan.postelnicu>
Thu, 26 Nov 2015 07:03:00 +0100
changeset 309303 0d6721e243d3d89737e54c9a26ecd83bdd847ffd
parent 309302 19c2125592584778db90546a5b8538d983aea3e3
child 309304 8d04ecd5ad59c959da96755ab6699f5ed306987d
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 memebers 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), size_(0), base_(NULL) {}
   ~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;