[Groonga-commit] groonga/groonga at e911704 [master] Add missing variable definition and return

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Jun 19 15:10:39 JST 2013


Kouhei Sutou	2013-06-19 15:10:39 +0900 (Wed, 19 Jun 2013)

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

  Message:
    Add missing variable definition and return
    
    Sorry...

  Modified files:
    lib/util.c

  Modified: lib/util.c (+4 -2)
===================================================================
--- lib/util.c    2013-06-19 15:09:17 +0900 (f5c3457)
+++ lib/util.c    2013-06-19 15:10:39 +0900 (ecdf2c8)
@@ -607,6 +607,7 @@ grn_table_normalizer_inspect(grn_ctx *ctx, grn_obj *buf, grn_obj *obj)
 static grn_rc
 grn_table_keys_inspect(grn_ctx *ctx, grn_obj *buf, grn_obj *obj)
 {
+  grn_table_cursor *tc;
 
     GRN_TEXT_PUTS(ctx, buf, "keys:[");
     tc = grn_table_cursor_open(ctx, obj, NULL, 0, NULL, 0,
@@ -626,6 +627,9 @@ grn_table_keys_inspect(grn_ctx *ctx, grn_obj *buf, grn_obj *obj)
       grn_table_cursor_close(ctx, tc);
     }
     GRN_TEXT_PUTS(ctx, buf, "]");
+
+
+  return GRN_SUCCESS;
 }
 
 static grn_rc
@@ -666,8 +670,6 @@ grn_table_inspect(grn_ctx *ctx, grn_obj *buf, grn_obj *obj)
     GRN_TEXT_PUTS(ctx, buf, " ");
     grn_table_ids_inspect(ctx, buf, obj);
   } else {
-    grn_table_cursor *tc;
-
     GRN_TEXT_PUTS(ctx, buf, " ");
     grn_table_default_tokenizer_inspect(ctx, buf, obj);
 
-------------- next part --------------
HTML����������������������������...
Download 



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