Skip to content
Permalink
Browse files

Fix uninitialized variabled in ConnectionEvent

  • Loading branch information...
nerzhul committed Apr 5, 2015
1 parent 334e704 commit 4235f671c1db54972d288d5be952a748a7563080
Showing with 2 additions and 1 deletion.
  1. +2 −1 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()
{

1 comment on commit 4235f67

@ShadowNinja

This comment has been minimized.

Copy link
Member

commented on 4235f67 Apr 7, 2015

These should always be set explicitly by any connection event that uses them.

Please sign in to comment.
You can’t perform that action at this time.