summaryrefslogtreecommitdiff
path: root/sal/textenc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-09-13 09:12:04 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-09-13 09:12:26 +0200
commit66322c5f4a5465c74fa3ceefaa2f76e86a277c16 (patch)
tree2d5b95781658915edf4f49b8a37be331fa06230d /sal/textenc
parentd0d026a1589b8d8d97d4c64a48343c2d55774741 (diff)
Silence warning C4701: potentially uninitialized local variable
Change-Id: Ia37347108f9fe7094f055a5c6f2ec9511c3aff1d
Diffstat (limited to 'sal/textenc')
-rw-r--r--sal/textenc/tcvtutf8.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/textenc/tcvtutf8.cxx b/sal/textenc/tcvtutf8.cxx
index 4943f6987a29..d9c3c134a83a 100644
--- a/sal/textenc/tcvtutf8.cxx
+++ b/sal/textenc/tcvtutf8.cxx
@@ -68,7 +68,7 @@ sal_Size ImplConvertUtf8ToUnicode(
{
bool bJavaUtf8 = pData != nullptr;
sal_uInt32 nUtf32 = 0;
- int nBytes;
+ int nBytes = int();
int nShift = -1;
bool bCheckBom = true;
sal_uInt32 nInfo = 0;