[Groonga-commit] groonga/groonga at c735844 [master] Reduce scope

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Aug 10 12:17:17 JST 2014


Kouhei Sutou	2014-08-10 12:17:17 +0900 (Sun, 10 Aug 2014)

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

  Message:
    Reduce scope

  Modified files:
    lib/proc.c

  Modified: lib/proc.c (+1 -1)
===================================================================
--- lib/proc.c    2014-08-10 12:16:56 +0900 (e42c91c)
+++ lib/proc.c    2014-08-10 12:17:17 +0900 (ba439d3)
@@ -4804,7 +4804,6 @@ func_highlight_html(grn_ctx *ctx, int nargs, grn_obj **args,
     const char *close_tags[1];
     unsigned int close_tag_lengths[1];
     grn_obj *keywords;
-    grn_obj got_keywords;
 
     open_tags[0] = "<span class=\"keyword\">";
     open_tag_lengths[0] = strlen("<span class=\"keyword\">");
@@ -4831,6 +4830,7 @@ func_highlight_html(grn_ctx *ctx, int nargs, grn_obj **args,
     }
 
     if (condition) {
+      grn_obj got_keywords;
       GRN_PTR_INIT(&got_keywords, GRN_OBJ_VECTOR, GRN_ID_NIL);
       grn_expr_get_keywords(ctx, condition, &got_keywords);
 
-------------- next part --------------
HTML����������������������������...
Download 



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