Skip to content

Commit d21a9d2

Browse files
mamillinyacool
authored andcommitted
add some initialization
1 parent 47b4fea commit d21a9d2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

WebServer/Channel.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ using namespace std;
1313
Channel::Channel(EventLoop *loop):
1414
loop_(loop),
1515
events_(0),
16-
lastEvents_(0)
16+
lastEvents_(0),
17+
fd_(0)
1718
{ }
1819

1920
Channel::Channel(EventLoop *loop, int fd):

WebServer/Timer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ TimerNode::~TimerNode()
2323
}
2424

2525
TimerNode::TimerNode(TimerNode &tn):
26-
SPHttpData(tn.SPHttpData)
26+
SPHttpData(tn.SPHttpData),
27+
expiredTime_(0)
2728
{ }
2829

2930

0 commit comments

Comments
 (0)