[Groonga-commit] groonga/groonga at 22b0f29 [master] dump: remove needless new line between schema and records

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Apr 4 22:37:26 JST 2015


Kouhei Sutou	2015-04-04 22:37:26 +0900 (Sat, 04 Apr 2015)

  New Revision: 22b0f2984985704ddef8030a1c0c627334c70466
  https://github.com/groonga/groonga/commit/22b0f2984985704ddef8030a1c0c627334c70466

  Message:
    dump: remove needless new line between schema and records

  Modified files:
    lib/proc.c

  Modified: lib/proc.c (+3 -1)
===================================================================
--- lib/proc.c    2015-04-04 22:32:22 +0900 (e3ce6e9)
+++ lib/proc.c    2015-04-04 22:37:26 +0900 (f3b51f3)
@@ -2998,7 +2998,9 @@ dump_records(grn_ctx *ctx, grn_obj *outbuf, grn_obj *table)
     goto exit;
   }
 
-  GRN_TEXT_PUTC(ctx, outbuf, '\n');
+  if (GRN_TEXT_LEN(outbuf) > 0) {
+    GRN_TEXT_PUTC(ctx, outbuf, '\n');
+  }
 
   GRN_TEXT_PUTS(ctx, outbuf, "load --table ");
   dump_obj_name(ctx, outbuf, table);
-------------- next part --------------
HTML����������������������������...
Download 



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