[Groonga-commit] groonga/groonga at ce1ac2e [master] Fix wrong condition

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Mar 31 10:04:24 JST 2016


Kouhei Sutou	2016-03-31 10:04:24 +0900 (Thu, 31 Mar 2016)

  New Revision: ce1ac2eb2a4e83d1f6dcee4d373128c63250fdfd
  https://github.com/groonga/groonga/commit/ce1ac2eb2a4e83d1f6dcee4d373128c63250fdfd

  Message:
    Fix wrong condition
    
    io->path is char[] not char *.

  Modified files:
    lib/io.c

  Modified: lib/io.c (+1 -1)
===================================================================
--- lib/io.c    2016-03-31 00:28:43 +0900 (bd969ff)
+++ lib/io.c    2016-03-31 10:04:24 +0900 (482bc31)
@@ -1379,7 +1379,7 @@ grn_io_flush(grn_ctx *ctx, grn_io *io)
   struct _grn_io_header *header;
   uint32_t aligned_header_size;
 
-  if (!io->path) {
+  if (io->path[0] == '\0') {
     return GRN_SUCCESS;
   }
 
-------------- next part --------------
HTML����������������������������...
Download 



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