aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-05-12 14:13:09 +0200
committerMax Kellermann <max@duempel.org>2014-05-12 14:13:09 +0200
commit1395794923e98e75f8579a567fc5c961796db7c2 (patch)
tree029d66cb68ed0cd8ac102c3823a0c1cfa754a977 /src
parent073e9d06ec756d839fd61b14e95711c13e6c1c87 (diff)
downloadmpd-1395794923e98e75f8579a567fc5c961796db7c2.tar.gz
mpd-1395794923e98e75f8579a567fc5c961796db7c2.tar.xz
mpd-1395794923e98e75f8579a567fc5c961796db7c2.zip
icu/Collate: initialize error_code
Fixes the broken "search" command.
Diffstat (limited to 'src')
-rw-r--r--src/lib/icu/Collate.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/icu/Collate.cxx b/src/lib/icu/Collate.cxx
index c863e7e2a..d3926cc3b 100644
--- a/src/lib/icu/Collate.cxx
+++ b/src/lib/icu/Collate.cxx
@@ -83,7 +83,7 @@ UCharFromUTF8(const char *src, int32_t *dest_length)
size_t dest_capacity = src_length + 1;
UChar *dest = new UChar[dest_capacity];
- UErrorCode error_code;
+ UErrorCode error_code = U_ZERO_ERROR;
u_strFromUTF8(dest, dest_capacity,
dest_length,
src, src_length,