diff --git a/src/lib/icu/Collate.cxx b/src/lib/icu/Collate.cxx index 8dd757fb0..27db10398 100644 --- a/src/lib/icu/Collate.cxx +++ b/src/lib/icu/Collate.cxx @@ -48,7 +48,7 @@ IcuCollateInit(Error &error) assert(collator == nullptr); assert(!error.IsDefined()); - UErrorCode code; + UErrorCode code = U_ZERO_ERROR; collator = ucol_open("", &code); if (collator == nullptr) { error.Format(icu_domain, int(code),