Skip to content

Commit

Permalink
add some initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
mamil authored and linyacool committed Oct 23, 2019
1 parent 47b4fea commit d21a9d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion WebServer/Channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ using namespace std;
Channel::Channel(EventLoop *loop):
loop_(loop),
events_(0),
lastEvents_(0)
lastEvents_(0),
fd_(0)
{ }

Channel::Channel(EventLoop *loop, int fd):
Expand Down
3 changes: 2 additions & 1 deletion WebServer/Timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ TimerNode::~TimerNode()
}

TimerNode::TimerNode(TimerNode &tn):
SPHttpData(tn.SPHttpData)
SPHttpData(tn.SPHttpData),
expiredTime_(0)
{ }


Expand Down

0 comments on commit d21a9d2

Please sign in to comment.