[Groonga-commit] groonga/groonga [master] Fix unintended variable shadowing

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Sun Feb 3 15:54:40 JST 2013


Kouhei Sutou	2013-02-03 15:54:40 +0900 (Sun, 03 Feb 2013)

  New Revision: 36c207e5c4f16ea83ec9f1d2e02a3afc393aa5dd
  https://github.com/groonga/groonga/commit/36c207e5c4f16ea83ec9f1d2e02a3afc393aa5dd

  Log:
    Fix unintended variable shadowing
    
    "id" is used upper scope.

  Modified files:
    lib/util.c

  Modified: lib/util.c (+1 -1)
===================================================================
--- lib/util.c    2013-02-01 18:17:44 +0900 (adfd309)
+++ lib/util.c    2013-02-03 15:54:40 +0900 (59c960b)
@@ -686,7 +686,7 @@ grn_record_inspect(grn_ctx *ctx, grn_obj *buf, grn_obj *obj)
                                 GRN_OBJ_TABLE_HASH_KEY|GRN_HASH_TINY))) {
       if (grn_table_columns(ctx, table, "", 0, (grn_obj *)cols)) {
         grn_id *key;
-        GRN_HASH_EACH(ctx, cols, id, &key, NULL, NULL, {
+        GRN_HASH_EACH(ctx, cols, column_id, &key, NULL, NULL, {
             grn_obj *col = grn_ctx_at(ctx, *key);
             if (col) {
               grn_obj value;
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る