[Groonga-commit] groonga/groonga at 0bc794a [master] select: remove duplicated NULL check

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Nov 16 16:41:53 JST 2014


Kouhei Sutou	2014-11-16 16:41:53 +0900 (Sun, 16 Nov 2014)

  New Revision: 0bc794a0611bde278fca37bed2d512ec26bcde0e
  https://github.com/groonga/groonga/commit/0bc794a0611bde278fca37bed2d512ec26bcde0e

  Message:
    select: remove duplicated NULL check

  Modified files:
    lib/proc.c

  Modified: lib/proc.c (+0 -2)
===================================================================
--- lib/proc.c    2014-11-16 16:41:12 +0900 (f8abac3)
+++ lib/proc.c    2014-11-16 16:41:53 +0900 (2dc209d)
@@ -548,7 +548,6 @@ grn_select_drilldown(grn_ctx *ctx, grn_obj *table,
 {
   uint32_t i;
   grn_table_group_result g = {NULL, 0, 0, 1, GRN_TABLE_GROUP_CALC_COUNT, 0};
-  if (keys) {
     for (i = 0; i < n_keys; i++) {
       uint32_t n_hits;
       int real_offset = offset;
@@ -608,7 +607,6 @@ grn_select_drilldown(grn_ctx *ctx, grn_obj *table,
       GRN_QUERY_LOG(ctx, GRN_QUERY_LOG_SIZE,
                     ":", "drilldown(%d)", n_hits);
     }
-  }
 }
 
 grn_rc
-------------- next part --------------
HTML����������������������������...
下載 



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