[Groonga-commit] groonga/groonga at f610b85 [master] dump: reduce scope

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Jul 14 15:54:56 JST 2017


Kouhei Sutou	2017-07-14 15:54:56 +0900 (Fri, 14 Jul 2017)

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

  Message:
    dump: reduce scope

  Modified files:
    lib/proc/proc_dump.c

  Modified: lib/proc/proc_dump.c (+1 -1)
===================================================================
--- lib/proc/proc_dump.c    2017-07-14 15:53:54 +0900 (93f3217)
+++ lib/proc/proc_dump.c    2017-07-14 15:54:56 +0900 (1d29fa5)
@@ -617,7 +617,6 @@ dump_records(grn_ctx *ctx, grn_dumper *dumper, grn_obj *table)
     grn_obj *sorted;
     grn_table_sort_key *sort_keys;
     uint32_t n_sort_keys;
-    void *value_raw;
     grn_bool is_first_record = GRN_TRUE;
 
     sort_keys = grn_table_sort_key_from_str(ctx,
@@ -640,6 +639,7 @@ dump_records(grn_ctx *ctx, grn_dumper *dumper, grn_obj *table)
                                    0);
 
     while (grn_table_cursor_next(ctx, cursor) != GRN_ID_NIL) {
+      void *value_raw;
       grn_id id;
 
       grn_table_cursor_get_value(ctx, cursor, &value_raw);
-------------- next part --------------
HTML����������������������������...
Télécharger 



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