[Groonga-commit] pgroonga/pgroonga at 4cd44bd [master] Add missing initialization

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Oct 8 23:50:51 JST 2016


Kouhei Sutou	2016-10-08 23:50:51 +0900 (Sat, 08 Oct 2016)

  New Revision: 4cd44bd59d6cf3755bc53b3c12fa3da9a2a71921
  https://github.com/pgroonga/pgroonga/commit/4cd44bd59d6cf3755bc53b3c12fa3da9a2a71921

  Message:
    Add missing initialization

  Modified files:
    src/pgroonga.c

  Modified: src/pgroonga.c (+2 -2)
===================================================================
--- src/pgroonga.c    2016-10-08 23:50:18 +0900 (22c4031)
+++ src/pgroonga.c    2016-10-08 23:50:51 +0900 (e82b520)
@@ -1787,7 +1787,7 @@ pgroonga_match_contain_text(PG_FUNCTION_ARGS)
 {
 	text *target = PG_GETARG_TEXT_PP(0);
 	ArrayType *keywords = PG_GETARG_ARRAYTYPE_P(1);
-	grn_bool matched;
+	grn_bool matched = GRN_FALSE;
 	int i, n;
 
 	n = ARR_DIMS(keywords)[0];
@@ -1821,7 +1821,7 @@ pgroonga_query_contain_text(PG_FUNCTION_ARGS)
 {
 	text *target = PG_GETARG_TEXT_PP(0);
 	ArrayType *queries = PG_GETARG_ARRAYTYPE_P(1);
-	grn_bool matched;
+	grn_bool matched = GRN_FALSE;
 	int i, n;
 
 	n = ARR_DIMS(queries)[0];
-------------- next part --------------
HTML����������������������������...
Download 



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