Bug 1453795 - Netwerk/Coockies - Initialize member fields in classes/ structures. r=josh
authorAndi-Bogdan Postelnicu <bpostelnicu@mozilla.com>
Wed, 13 Jun 2018 23:52:59 +0300
changeset 479220 c06e65cb2745f2d62f9cb797731b253fc466a8d1
parent 479219 3b89a0f2abe5ae65cf2ec2970e1b0ac754f3f282
child 479221 c22b89e6f83a7aeb9f030691703c3e25dff0a113
push id1757
push userffxbld-merge
push dateFri, 24 Aug 2018 17:02:43 +0000
treeherdermozilla-release@736023aebdb1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjosh
bugs1453795
milestone62.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 1453795 - Netwerk/Coockies - Initialize member fields in classes/ structures. r=josh
netwerk/cookie/nsCookieService.h
--- a/netwerk/cookie/nsCookieService.h
+++ b/netwerk/cookie/nsCookieService.h
@@ -138,17 +138,21 @@ struct CookieDomainTuple
   nsCookieKey key;
   mozilla::UniquePtr<ConstCookie> cookie;
 };
 
 // encapsulates in-memory and on-disk DB states, so we can
 // conveniently switch state when entering or exiting private browsing.
 struct DBState final
 {
-  DBState() : cookieCount(0), cookieOldestTime(INT64_MAX), corruptFlag(OK)
+  DBState()
+    : cookieCount(0)
+    , cookieOldestTime(INT64_MAX)
+    , corruptFlag(OK)
+    , readListener(nullptr)
   {
   }
 
 private:
   // Private destructor, to discourage deletion outside of Release():
   ~DBState() = default;
 
 public: