diff options
Diffstat (limited to 'storage/mroonga/vendor/groonga/lib/string.c')
-rw-r--r-- | storage/mroonga/vendor/groonga/lib/string.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/storage/mroonga/vendor/groonga/lib/string.c b/storage/mroonga/vendor/groonga/lib/string.c index 3249865b900..3ba8b8678c0 100644 --- a/storage/mroonga/vendor/groonga/lib/string.c +++ b/storage/mroonga/vendor/groonga/lib/string.c @@ -245,6 +245,9 @@ grn_string_get_normalized(grn_ctx *ctx, grn_obj *string, if (n_characters) { *n_characters = string_->n_characters; } rc = GRN_SUCCESS; } else { + if (normalized) { *normalized = NULL; } + if (length_in_bytes) { *length_in_bytes = 0; } + if (n_characters) { *n_characters = 0; } rc = GRN_INVALID_ARGUMENT; } GRN_API_RETURN(rc); |