Bug 1276670 - initialize member variable |port|. r?valentin draft
authorAndi-Bogdan Postelnicu <bogdan.postelnicu@softvision.ro>
Mon, 30 May 2016 16:39:00 +0300
changeset 372896 78988c1b7cf928f9e5338104ff6d5284efc2c320
parent 372838 cad514ad49c199e823a92e8c8d27e16c22c3cac7
child 522271 bedb0bd52181e44b21071db3f7a6df0e51832fc8
push id19622
push userBogdan.Postelnicu@softvision.ro
push dateMon, 30 May 2016 13:41:40 +0000
reviewersvalentin
bugs1276670
milestone49.0a1
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