Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

db->database must be assigned here

  • Loading branch information...
commit 5da7c401fcc0bf751c3d83e59c939ba93273b686 1 parent 304792e
Yoji Shidara darashi authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/nroonga.cc
2  src/nroonga.cc
View
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.