From 66322c5f4a5465c74fa3ceefaa2f76e86a277c16 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 13 Sep 2017 09:12:04 +0200 Subject: Silence warning C4701: potentially uninitialized local variable Change-Id: Ia37347108f9fe7094f055a5c6f2ec9511c3aff1d --- sal/textenc/tcvtutf8.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sal/textenc') 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; -- cgit v1.2.3