Skip to content

Commit aa46f36

Browse files
committed
Merge pull request #147 from Sage/master
fixed crash in commit/rollback
2 parents 4314945 + 421fd6c commit aa46f36

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/connection.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ void Connection::EIO_AfterCommit(uv_work_t* req, int status) {
408408

409409
Handle<Value> argv[2];
410410
argv[0] = Undefined();
411+
argv[1] = Undefined();
411412
node::MakeCallback(Context::GetCurrent()->Global(), uni::Deref(baton->callback), 2, argv);
412413
delete baton;
413414
delete req;
@@ -427,6 +428,7 @@ void Connection::EIO_AfterRollback(uv_work_t* req, int status) {
427428

428429
Handle<Value> argv[2];
429430
argv[0] = Undefined();
431+
argv[1] = Undefined();
430432
node::MakeCallback(Context::GetCurrent()->Global(), uni::Deref(baton->callback), 2, argv);
431433
delete baton;
432434
delete req;

0 commit comments

Comments
 (0)