Bug 1276622 - initialize member variable |mDebugCList|. r=valentin
authorAndi-Bogdan Postelnicu <bogdan.postelnicu@softvision.ro>
Mon, 30 May 2016 13:51:45 +0300
changeset 340579 33840f0669e79db9fe0be87b71a2c04a2bb25046
parent 340578 754048d99b1c86ba43a4ed4ea401bacb0683a356
child 340580 d0337c1582a148c5e7ebc441010074256edb8839
push id1183
push userraliiev@mozilla.com
push dateMon, 05 Sep 2016 20:01:49 +0000
treeherdermozilla-release@3148731bed45 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvalentin
bugs1276622
milestone49.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 1276622 - initialize member variable |mDebugCList|. r=valentin MozReview-Commit-ID: FJZz94Gi2dd
netwerk/base/nsStandardURL.cpp
--- a/netwerk/base/nsStandardURL.cpp
+++ b/netwerk/base/nsStandardURL.cpp
@@ -261,16 +261,17 @@ nsStandardURL::nsStandardURL(bool aSuppo
         gInitialized = true;
         InitGlobalObjects();
     }
 
     // default parser in case nsIStandardURL::Init is never called
     mParser = net_GetStdURLParser();
 
 #ifdef DEBUG_DUMP_URLS_AT_SHUTDOWN
+    memset(&mDebugCList, 0, sizeof(mDebugCList));
     if (NS_IsMainThread()) {
         if (aTrackURL) {
             PR_APPEND_LINK(&mDebugCList, &gAllURLs);
         } else {
             PR_INIT_CLIST(&mDebugCList);
         }
     }
 #endif