aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/icu/Collate.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/icu/Collate.cxx')
-rw-r--r--src/lib/icu/Collate.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/icu/Collate.cxx b/src/lib/icu/Collate.cxx
index 27db10398..3e8a6f5b5 100644
--- a/src/lib/icu/Collate.cxx
+++ b/src/lib/icu/Collate.cxx
@@ -109,7 +109,8 @@ IcuCollate(const char *a, const char *b)
assert(collator != nullptr);
#if U_ICU_VERSION_MAJOR_NUM >= 50
- return (int)ucol_strcollUTF8(collator, a, -1, b, -1, nullptr);
+ UErrorCode code = U_ZERO_ERROR;
+ return (int)ucol_strcollUTF8(collator, a, -1, b, -1, &code);
#else
/* fall back to ucol_strcoll() */