diff options
author | Max Kellermann <max@duempel.org> | 2014-02-24 21:04:23 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-24 21:04:23 +0100 |
commit | 1e63e7c08bd595bac9ec889c16d61dd8b2b84974 (patch) | |
tree | 4a89998622a3abef00d9980a1ac0e04587c72cee | |
parent | 33fc3af775ca35ae343a4e50de36e8853cabb86d (diff) | |
download | mpd-1e63e7c08bd595bac9ec889c16d61dd8b2b84974.tar.gz mpd-1e63e7c08bd595bac9ec889c16d61dd8b2b84974.tar.xz mpd-1e63e7c08bd595bac9ec889c16d61dd8b2b84974.zip |
icu/Collate: initialize the error code before ucol_open()
Fixes initialization failure.
-rw-r--r-- | src/lib/icu/Collate.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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), |