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

Michael Stahl mstahl at redhat.com
Tue Aug 22 20:56:56 UTC 2017


 editeng/source/items/frmitems.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f53c9922c653123b43e039ff70bbd515c97db252
Author: Michael Stahl <mstahl at redhat.com>
Date:   Tue Aug 22 22:52:00 2017 +0200

    editeng: warning C4701 potentially uninitialized local var
    
    Change-Id: I611f0b5652722f0de38dfb82440823b832a6029c

diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx
index fb3d120d8ab7..c2bfc5e290fb 100644
--- a/editeng/source/items/frmitems.cxx
+++ b/editeng/source/items/frmitems.cxx
@@ -2037,7 +2037,7 @@ SfxPoolItem* SvxBoxItem::Create( SvStream& rStrm, sal_uInt16 nIVersion ) const
     SvxBoxItemLine aLineMap[4] = { SvxBoxItemLine::TOP, SvxBoxItemLine::LEFT,
                            SvxBoxItemLine::RIGHT, SvxBoxItemLine::BOTTOM };
 
-    sal_Int8 cLine;
+    sal_Int8 cLine(0);
     while (rStrm.good())
     {
         rStrm.ReadSChar( cLine );


More information about the Libreoffice-commits mailing list