aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2015-04-05 11:13:30 +0200
committerLoic Blot <loic.blot@unix-experience.fr>2015-04-05 11:13:30 +0200
commit4235f671c1db54972d288d5be952a748a7563080 (patch)
tree7cc0f27b85fd585c4fac33ad2d4a920057c881aa /src
parent334e70455b7f8a4607fe99dc12710d48169113a6 (diff)
downloadminetest-4235f671c1db54972d288d5be952a748a7563080.tar.gz
minetest-4235f671c1db54972d288d5be952a748a7563080.tar.bz2
minetest-4235f671c1db54972d288d5be952a748a7563080.zip
Fix uninitialized variabled in ConnectionEvent
Diffstat (limited to 'src')
-rw-r--r--src/network/connection.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/connection.h b/src/network/connection.h
index f60c66257..556a40a12 100644
--- a/src/network/connection.h
+++ b/src/network/connection.h
@@ -865,7 +865,8 @@ struct ConnectionEvent
bool timeout;
Address address;
- ConnectionEvent(): type(CONNEVENT_NONE) {}
+ ConnectionEvent(): type(CONNEVENT_NONE), peer_id(0),
+ timeout(false) {}
std::string describe()
{