[Groonga-commit] groonga/groonga at 0338bf6 [master] dump: remove needless new line

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Jun 24 23:55:36 JST 2016


Kouhei Sutou	2016-06-24 23:55:36 +0900 (Fri, 24 Jun 2016)

  New Revision: 0338bf626cb1ec13622c739c4c0b91a0c15e9ed4
  https://github.com/groonga/groonga/commit/0338bf626cb1ec13622c739c4c0b91a0c15e9ed4

  Message:
    dump: remove needless new line

  Modified files:
    lib/proc/proc_dump.c

  Modified: lib/proc/proc_dump.c (+3 -1)
===================================================================
--- lib/proc/proc_dump.c    2016-06-24 17:20:11 +0900 (2540892)
+++ lib/proc/proc_dump.c    2016-06-24 23:55:36 +0900 (2d2cd83)
@@ -933,7 +933,9 @@ dump_indexes(grn_ctx *ctx, grn_dumper *dumper)
     return;
   }
 
-  GRN_TEXT_PUTC(ctx, dumper->output, '\n');
+  if (GRN_TEXT_LEN(dumper->output) > 0) {
+    GRN_TEXT_PUTC(ctx, dumper->output, '\n');
+  }
 
   GRN_TABLE_EACH_BEGIN_FLAGS(ctx, grn_ctx_db(ctx), cursor, id,
                              GRN_CURSOR_BY_ID | GRN_CURSOR_ASCENDING) {
-------------- next part --------------
HTML����������������������������...
Descargar 



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