Navigation Menu

Skip to content

Commit

Permalink
Fix inverted condition bug
Browse files Browse the repository at this point in the history
Pointed out by Hiroshi Hatake. Thanks!!!
  • Loading branch information
kou committed Oct 17, 2015
1 parent 420310c commit 5dc20b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/db.c
Expand Up @@ -204,7 +204,7 @@ grn_db_conf_open(grn_ctx *ctx, grn_db *s, const char *path)
char conf_path[PATH_MAX];

grn_snprintf(conf_path, PATH_MAX, PATH_MAX, GRN_DB_CONF_PATH_FORMAT, path);
if (grn_path_exist(conf_path) == 0) {
if (grn_path_exist(conf_path)) {
s->conf = grn_hash_open(ctx, conf_path);
if (!s->conf) {
ERR(GRN_NO_MEMORY_AVAILABLE,
Expand Down

0 comments on commit 5dc20b4

Please sign in to comment.