Bug 1190069 - Fix uninitialized variable in MDNSResponderOperator.cpp. r=xeonchen
authorMuhsin Ali Steiman <ma.steiman@gmail.com>
Sat, 01 Aug 2015 11:26:00 -0400
changeset 287536 6160dbecbceb4d8673c1731802e0939e4764ef6f
parent 287535 006e8f78affed61e48b8bd0346d6e6d3efc06e7e
child 287537 c8d9d720a30e7e3d9698d8547bab4b0769741418
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersxeonchen
bugs1190069
milestone42.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 1190069 - Fix uninitialized variable in MDNSResponderOperator.cpp. r=xeonchen
netwerk/dns/mdns/libmdns/MDNSResponderOperator.cpp
--- a/netwerk/dns/mdns/libmdns/MDNSResponderOperator.cpp
+++ b/netwerk/dns/mdns/libmdns/MDNSResponderOperator.cpp
@@ -282,17 +282,17 @@ MDNSResponderOperator::ResetService(DNSS
   if (aService != mService) {
     if (mWatcher) {
       mWatcher->Close();
       mWatcher = nullptr;
     }
 
     if (aService) {
       nsRefPtr<ServiceWatcher> watcher = new ServiceWatcher(aService);
-      if (NS_WARN_IF(NS_FAILED(watcher->Init()))) {
+      if (NS_WARN_IF(NS_FAILED(rv = watcher->Init()))) {
         return rv;
       }
       mWatcher = watcher;
     }
 
     mService = aService;
   }
   return NS_OK;