Permalink
Browse files

db->database must be assigned here

  • Loading branch information...
1 parent 304792e commit 5da7c401fcc0bf751c3d83e59c939ba93273b686 @darashi darashi committed Dec 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/nroonga.cc
View
2 src/nroonga.cc
@@ -41,7 +41,7 @@ Handle<Value> Database::New(const Arguments& args) {
} else if(args[0]->IsString()) {
String::Utf8Value path(args[0]->ToString());
if (args.Length() > 1 && args[1]->IsTrue()) {
- grn_db_open(ctx, *path);
+ db->database = grn_db_open(ctx, *path);
} else {
GRN_DB_OPEN_OR_CREATE(ctx, *path, NULL, db->database);
}

0 comments on commit 5da7c40

Please sign in to comment.