[Libreoffice-commits] .: editeng/source

Caolán McNamara caolan at kemper.freedesktop.org
Thu Feb 23 05:27:20 PST 2012


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

New commits:
commit 2c7a532b7e2b8cf41792292610df96755b131987
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Feb 23 13:27:15 2012 +0000

    WaE: nWidth might be unused uninitialized

diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx
index b10218d..0cde9c4 100644
--- a/editeng/source/items/frmitems.cxx
+++ b/editeng/source/items/frmitems.cxx
@@ -1953,7 +1953,7 @@ bool SvxBoxItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
         case LINE_WIDTH:
             {
                 // Set the line width on all borders
-                long nWidth;
+                long nWidth(0);
                 rVal >>= nWidth;
                 if( bConvert )
                     nWidth = MM100_TO_TWIP( nWidth );


More information about the Libreoffice-commits mailing list