diff options
author | Mark Spruiell <mes@zeroc.com> | 2013-07-11 14:18:45 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2013-07-11 14:18:45 -0700 |
commit | 8cff3c981cbee475048438ac96672005f615bef4 (patch) | |
tree | 7c4b2ea5fb101eaa0e142e8919d5c11b90a84213 /cpp/src/Ice/Network.cpp | |
parent | ICE-5335 - show stack trace for IceUtil::Exception (diff) | |
download | ice-8cff3c981cbee475048438ac96672005f615bef4.tar.bz2 ice-8cff3c981cbee475048438ac96672005f615bef4.tar.xz ice-8cff3c981cbee475048438ac96672005f615bef4.zip |
ICE-5377 - clang optimized build failure
Diffstat (limited to 'cpp/src/Ice/Network.cpp')
-rw-r--r-- | cpp/src/Ice/Network.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cpp/src/Ice/Network.cpp b/cpp/src/Ice/Network.cpp index b1a921220e2..fb4189d7e6e 100644 --- a/cpp/src/Ice/Network.cpp +++ b/cpp/src/Ice/Network.cpp @@ -549,14 +549,20 @@ IceUtil::Shared* IceInternal::upCast(NetworkProxy* p) { return p; } IceUtil::Shared* IceInternal::upCast(SOCKSNetworkProxy* p) { return p; } IceInternal::SOCKSNetworkProxy::SOCKSNetworkProxy(const string& host, int port) : - _host(host), _port(port), _haveAddress(false) + _host(host), _port(port) { memset(&_address, 0, sizeof(_address)); +#ifndef NDEBUG + _haveAddress = false; +#endif } IceInternal::SOCKSNetworkProxy::SOCKSNetworkProxy(const Address& addr) : - _port(0), _address(addr), _haveAddress(true) + _port(0), _address(addr) { +#ifndef NDEBUG + _haveAddress = true; +#endif } void |