Navigation Menu

Skip to content

Commit

Permalink
Initialize the last chracter type as GRN_CHAR_NULL
Browse files Browse the repository at this point in the history
refs #1729
  • Loading branch information
kou committed Jun 4, 2013
1 parent fd51a26 commit d353f1d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions normalizers/mysql.c
Expand Up @@ -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];
Expand Down

0 comments on commit d353f1d

Please sign in to comment.