Bug 1276670 - initialize member variable |port|. r=valentin
authorAndi-Bogdan Postelnicu <bogdan.postelnicu@softvision.ro>
Mon, 30 May 2016 16:39:00 +0300
changeset 338585 90ba40dac02d30f615626eda393cf1f53335f783
parent 338584 0d474d88654af4d734f25c3e655989133155917f
child 338586 8ca82dcfc2a31722ac005ba8cbce4e7704643ea5
push id6249
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 13:59:36 +0000
treeherdermozilla-beta@bad9d4f5bf7e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvalentin
bugs1276670
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 1276670 - initialize member variable |port|. r=valentin MozReview-Commit-ID: HELBqjSaRfP
netwerk/base/nsProtocolProxyService.h
--- a/netwerk/base/nsProtocolProxyService.h
+++ b/netwerk/base/nsProtocolProxyService.h
@@ -333,16 +333,17 @@ protected:
         int32_t port;
         union {
             HostInfoIP   ip;
             HostInfoName name;
         };
 
         HostInfo()
             : is_ipaddr(false)
+            , port(0)
             { /* other members intentionally uninitialized */ }
        ~HostInfo() {
             if (!is_ipaddr && name.host)
                 free(name.host);
         }
     };
 
     // An instance of this struct is allocated for each registered