Skip to content

Commit

Permalink
db->database must be assigned here
Browse files Browse the repository at this point in the history
  • Loading branch information
darashi committed Dec 2, 2011
1 parent 304792e commit 5da7c40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nroonga.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 5da7c40

Please sign in to comment.