Skip to content

Commit f59d815

Browse files
committed
init baton->error to false.
1 parent bd94320 commit f59d815

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

05_threadpool/modulename.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ Handle<Value> Async(const Arguments& args) {
4545

4646
// This creates our work request, including the libuv struct.
4747
Baton* baton = new Baton();
48+
baton->error = false;
4849
baton->request.data = baton;
4950
baton->callback = Persistent<Function>::New(callback);
5051

0 commit comments

Comments
 (0)