Bug 1368233 - Initialize all of the fields of AvailableEvent; r=mcmanus
authorEhsan Akhgari <ehsan@mozilla.com>
Sat, 27 May 2017 05:08:35 -0400
changeset 361992 3d01e72f3e9c0167bab97654c391efd3a0b41541
parent 361991 d35c5311aa72123eb5044bc2901fcd50fcb8357f
child 361993 c738c30dc6a248508e00d4d53bd909ef03f65be6
push id31953
push usercbook@mozilla.com
push dateFri, 02 Jun 2017 12:22:33 +0000
treeherdermozilla-central@2a8478029a0c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmcmanus
bugs1368233
milestone55.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 1368233 - Initialize all of the fields of AvailableEvent; r=mcmanus
netwerk/base/nsStreamTransportService.cpp
--- a/netwerk/base/nsStreamTransportService.cpp
+++ b/netwerk/base/nsStreamTransportService.cpp
@@ -562,16 +562,18 @@ nsStreamTransportService::Observe(nsISup
 class AvailableEvent final : public Runnable
 {
     public:
     AvailableEvent(nsIInputStream *stream,
                    nsIInputAvailableCallback *callback)
         : mStream(stream)
         , mCallback(callback)
         , mDoingCallback(false)
+        , mSize(0)
+        , mResultForCallback(NS_OK)
     {
         mCallbackTarget = NS_GetCurrentThread();
     }
 
     NS_IMETHOD Run() override
     {
         if (mDoingCallback) {
             // pong