[Libreoffice-commits] core.git: vcl/source

Caolán McNamara caolanm at redhat.com
Tue Oct 24 16:12:30 UTC 2017


 vcl/source/font/font.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 429cd1b70b497a97496b24c0104a25565b0c00fe
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Oct 24 12:04:45 2017 +0100

    ofz#3748 Invalid-bool-value
    
    Change-Id: I5a14ff75c27062e33cbd93efb931c203135648a3

diff --git a/vcl/source/font/font.cxx b/vcl/source/font/font.cxx
index 557984fe4e57..06591700ee11 100644
--- a/vcl/source/font/font.cxx
+++ b/vcl/source/font/font.cxx
@@ -361,9 +361,9 @@ void Font::GetFontAttributes( FontAttributes& rAttrs ) const
 SvStream& ReadImplFont( SvStream& rIStm, ImplFont& rImplFont )
 {
     VersionCompat   aCompat( rIStm, StreamMode::READ );
-    sal_uInt16      nTmp16;
-    bool            bTmp;
-    sal_uInt8       nTmp8;
+    sal_uInt16      nTmp16(0);
+    bool            bTmp(false);
+    sal_uInt8       nTmp8(0);
 
     rImplFont.SetFamilyName( rIStm.ReadUniOrByteString(rIStm.GetStreamCharSet()) );
     rImplFont.maStyleName = rIStm.ReadUniOrByteString(rIStm.GetStreamCharSet());


More information about the Libreoffice-commits mailing list