Skip to content

Commit

Permalink
Merge pull request #730 from groonga/dont-output-cstr-on-normalize-error
Browse files Browse the repository at this point in the history
normalize: don't output "" on error

Patch by Susumu Yata. Thanks!!!
  • Loading branch information
kou committed Jul 7, 2017
2 parents 3e6c0cc + d1f8c34 commit 8639c60
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,6 @@ proc_normalize(grn_ctx *ctx, int nargs, grn_obj **args, grn_user_data *user_data
flag_names = VAR(2);
if (GRN_TEXT_LEN(normalizer_name) == 0) {
ERR(GRN_INVALID_ARGUMENT, "normalizer name is missing");
GRN_OUTPUT_CSTR("");
return NULL;
}

Expand All @@ -1108,7 +1107,6 @@ proc_normalize(grn_ctx *ctx, int nargs, grn_obj **args, grn_user_data *user_data
"[normalize] nonexistent normalizer: <%.*s>",
(int)GRN_TEXT_LEN(normalizer_name),
GRN_TEXT_VALUE(normalizer_name));
GRN_OUTPUT_CSTR("");
return NULL;
}

Expand All @@ -1121,7 +1119,6 @@ proc_normalize(grn_ctx *ctx, int nargs, grn_obj **args, grn_user_data *user_data
(int)GRN_TEXT_LEN(&inspected),
GRN_TEXT_VALUE(&inspected));
GRN_OBJ_FIN(ctx, &inspected);
GRN_OUTPUT_CSTR("");
grn_obj_unlink(ctx, normalizer);
return NULL;
}
Expand Down

0 comments on commit 8639c60

Please sign in to comment.