aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-11-18 10:49:52 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-11-18 10:49:52 +0100
commitaafa06fa15f1ef274fef2df9e939323ed61e670e (patch)
tree77d847f83d9e678c02c8b6b5dca54cb969925f14 /contrib
parent44aad3ddd3dd8638b7623b53cbca9f59d886ba1d (diff)
downloadODR-AudioEnc-aafa06fa15f1ef274fef2df9e939323ed61e670e.tar.gz
ODR-AudioEnc-aafa06fa15f1ef274fef2df9e939323ed61e670e.tar.bz2
ODR-AudioEnc-aafa06fa15f1ef274fef2df9e939323ed61e670e.zip
Common 27ac70f: Initialise InetAddress::addr
Diffstat (limited to 'contrib')
-rw-r--r--contrib/Socket.cpp3
-rw-r--r--contrib/Socket.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/contrib/Socket.cpp b/contrib/Socket.cpp
index cba2767..50a12ba 100644
--- a/contrib/Socket.cpp
+++ b/contrib/Socket.cpp
@@ -69,7 +69,8 @@ void InetAddress::resolveUdpDestination(const std::string& destination, int port
UDPPacket::UDPPacket() { }
UDPPacket::UDPPacket(size_t initSize) :
- buffer(initSize)
+ buffer(initSize),
+ address()
{ }
diff --git a/contrib/Socket.h b/contrib/Socket.h
index c3c37e1..df80b08 100644
--- a/contrib/Socket.h
+++ b/contrib/Socket.h
@@ -50,7 +50,7 @@
namespace Socket {
struct InetAddress {
- struct sockaddr_storage addr;
+ struct sockaddr_storage addr = {};
struct sockaddr *as_sockaddr() { return reinterpret_cast<sockaddr*>(&addr); };