Fix uninitialized variabled in ConnectionEvent
authorLoic Blot <loic.blot@unix-experience.fr>
Sun, 5 Apr 2015 09:13:30 +0000 (11:13 +0200)
committerLoic Blot <loic.blot@unix-experience.fr>
Sun, 5 Apr 2015 09:13:30 +0000 (11:13 +0200)
src/network/connection.h

index f60c6625702b5229dafc0828a5fdf5f30ef29bf9..556a40a1260f0790580e1b1b2c866ea9fe020601 100644 (file)
@@ -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()
        {