[Groonga-commit] groonga/groonga [fix-crash-by-invalid-argument-filter] Reduce scope

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Mon Sep 10 17:13:12 JST 2012


Kouhei Sutou	2012-09-10 17:13:12 +0900 (Mon, 10 Sep 2012)

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

  Log:
    Reduce scope

  Modified files:
    lib/expr.c

  Modified: lib/expr.c (+1 -1)
===================================================================
--- lib/expr.c    2012-09-10 17:12:52 +0900 (cda4b3c)
+++ lib/expr.c    2012-09-10 17:13:12 +0900 (a59f32a)
@@ -4289,7 +4289,6 @@ grn_table_select(grn_ctx *ctx, grn_obj *table, grn_obj *expr,
       uint32_t codes_curr = e->codes_curr;
       GRN_PTR_INIT(&res_stack, GRN_OBJ_VECTOR, GRN_ID_NIL);
       for (i = 0; i < n; i++) {
-        grn_bool processed = GRN_FALSE;
         scan_info *si = sis[i];
         if (si->flags & SCAN_POP) {
           grn_obj *res_;
@@ -4298,6 +4297,7 @@ grn_table_select(grn_ctx *ctx, grn_obj *table, grn_obj *expr,
           grn_obj_close(ctx, res);
           res = res_;
         } else {
+          grn_bool processed = GRN_FALSE;
           if (si->flags & SCAN_PUSH) {
             grn_obj *res_;
             res_ = grn_table_create(ctx, NULL, 0, NULL,
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index