Get rid of memset in stun.cpp
[novacoin.git] / src / net.cpp
index 6aff9f9..cf0a438 100644 (file)
@@ -345,7 +345,7 @@ extern int GetExternalIPbySTUN(uint64_t rnd, struct sockaddr_in *mapped, const c
 // We now get our external IP from the IRC server first and only use this as a backup
 bool GetMyExternalIP(CNetAddr& ipRet)
 {
-    struct sockaddr_in mapped;
+    struct sockaddr_in mapped = {};
     auto rnd = GetRand(numeric_limits<uint64_t>::max());
     const char *srv;
     int rc = GetExternalIPbySTUN(rnd, &mapped, &srv);