Bug 1305953 - Initialize some HttpServer & HttpServer::Connection members. r=kvijayan
authorPaul Bignier <paul.bignier@gmail.com>
Wed, 28 Sep 2016 11:52:18 +0200
changeset 315836 e4f89ad97215bf1c9b90d0bb3ad6d1961b38e170
parent 315835 14ed574a5c7c5515efb306bdb19f726073725993
child 315837 66a5416f87a211d21af7c11006a389019428283e
push id20634
push usercbook@mozilla.com
push dateFri, 30 Sep 2016 10:10:13 +0000
treeherderfx-team@afe79b010d13 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskvijayan
bugs1305953
milestone52.0a1
Bug 1305953 - Initialize some HttpServer & HttpServer::Connection members. r=kvijayan
dom/flyweb/HttpServer.cpp
--- a/dom/flyweb/HttpServer.cpp
+++ b/dom/flyweb/HttpServer.cpp
@@ -32,16 +32,18 @@ static LazyLogModule gHttpServerLog("Htt
 #define LOG_E(...) MOZ_LOG(gHttpServerLog, mozilla::LogLevel::Error, (__VA_ARGS__))
 
 
 NS_IMPL_ISUPPORTS(HttpServer,
                   nsIServerSocketListener,
                   nsILocalCertGetCallback)
 
 HttpServer::HttpServer()
+  : mPort()
+  , mHttps()
 {
 }
 
 HttpServer::~HttpServer()
 {
 }
 
 void
@@ -298,16 +300,18 @@ NS_IMPL_ISUPPORTS(HttpServer::Connection
                   nsIOutputStreamCallback)
 
 HttpServer::Connection::Connection(nsISocketTransport* aTransport,
                                    HttpServer* aServer,
                                    nsresult& rv)
   : mServer(aServer)
   , mTransport(aTransport)
   , mState(eRequestLine)
+  , mPendingReqVersion()
+  , mRemainingBodySize()
   , mCloseAfterRequest(false)
 {
   nsCOMPtr<nsIInputStream> input;
   rv = mTransport->OpenInputStream(0, 0, 0, getter_AddRefs(input));
   NS_ENSURE_SUCCESS_VOID(rv);
 
   mInput = do_QueryInterface(input);