[Groonga-commit] groonga/groonga at 5dc20b4 [master] Fix inverted condition bug

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Oct 17 23:03:54 JST 2015


Kouhei Sutou	2015-10-17 23:03:54 +0900 (Sat, 17 Oct 2015)

  New Revision: 5dc20b409e746a6c7156f7b8982fb695bbcbfe7c
  https://github.com/groonga/groonga/commit/5dc20b409e746a6c7156f7b8982fb695bbcbfe7c

  Message:
    Fix inverted condition bug
    
    Pointed out by Hiroshi Hatake. Thanks!!!

  Modified files:
    lib/db.c

  Modified: lib/db.c (+1 -1)
===================================================================
--- lib/db.c    2015-10-17 21:21:56 +0900 (558877a)
+++ lib/db.c    2015-10-17 23:03:54 +0900 (494ea62)
@@ -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,
-------------- next part --------------
HTML����������������������������...
下载 



More information about the Groonga-commit mailing list
Back to archive index