[Groonga-commit] groonga/groonga-normalizer-mysql at d353f1d [master] Initialize the last chracter type as GRN_CHAR_NULL

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Jun 4 15:59:20 JST 2013


Kouhei Sutou	2013-06-04 15:59:20 +0900 (Tue, 04 Jun 2013)

  New Revision: d353f1db7a2622499089646cd6975613315480b0
  https://github.com/groonga/groonga-normalizer-mysql/commit/d353f1db7a2622499089646cd6975613315480b0

  Message:
    Initialize the last chracter type as GRN_CHAR_NULL
    
    refs #1729

  Modified files:
    normalizers/mysql.c

  Modified: normalizers/mysql.c (+3 -0)
===================================================================
--- normalizers/mysql.c    2013-05-30 15:49:35 +0900 (1e5f346)
+++ normalizers/mysql.c    2013-06-04 15:59:20 +0900 (7baebc2)
@@ -359,6 +359,9 @@ normalize(grn_ctx *ctx, grn_obj *string,
     rest += character_length;
     rest_length -= character_length;
   }
+  if (current_type) {
+    current_type[0] = GRN_CHAR_NULL;
+  }
 
   if (rest_length > 0) {
     char buffer[SNIPPET_BUFFER_SIZE];
-------------- next part --------------
HTML����������������������������...
Download 



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