[Libreoffice-commits] core.git: sal/textenc

Stephan Bergmann sbergman at redhat.com
Wed Sep 13 07:12:50 UTC 2017


 sal/textenc/tcvtutf8.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 66322c5f4a5465c74fa3ceefaa2f76e86a277c16
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Sep 13 09:12:04 2017 +0200

    Silence warning C4701: potentially uninitialized local variable
    
    Change-Id: Ia37347108f9fe7094f055a5c6f2ec9511c3aff1d

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;


More information about the Libreoffice-commits mailing list