summaryrefslogtreecommitdiff
path: root/src/socket.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-04-11 11:36:13 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-04-11 11:36:13 +0300
commit9d4e9c59de533ae28badb22da87cb553783dd133 (patch)
tree1497631e01225065e680c897ffeb7cf228690af2 /src/socket.cpp
parent3f153c20d3936d18398149082fc453aa55859b1e (diff)
downloadminetest-9d4e9c59de533ae28badb22da87cb553783dd133.tar.gz
minetest-9d4e9c59de533ae28badb22da87cb553783dd133.tar.bz2
minetest-9d4e9c59de533ae28badb22da87cb553783dd133.zip
fixed warnings reported by cppcheck
Diffstat (limited to 'src/socket.cpp')
-rw-r--r--src/socket.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index b159fa14c..ab3ca62c5 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -53,6 +53,8 @@ void sockets_cleanup()
Address::Address()
{
+ m_address = 0;
+ m_port = 0;
}
Address::Address(unsigned int address, unsigned short port)