diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/common/unicode_norm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/unicode_norm.c b/src/common/unicode_norm.c index 5000565aa8b..2db059cfb78 100644 --- a/src/common/unicode_norm.c +++ b/src/common/unicode_norm.c @@ -342,6 +342,10 @@ unicode_normalize_kc(const pg_wchar *input) decomp_chars[decomp_size] = '\0'; Assert(decomp_size == current_size); + /* Leave if there is nothing to decompose */ + if (decomp_size == 0) + return decomp_chars; + /* * Now apply canonical ordering. */ |