[Libreoffice-commits] core.git: sw/source
Norbert Thiebaud
nthiebaud at gmail.com
Fri Jun 21 04:31:45 PDT 2013
sw/source/core/doc/htmltbl.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 0139e0b1cd4e4ac585417f0c71be10a419711b9d
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date: Thu Jun 20 13:15:53 2013 -0500
coverity#707550, coverity#707549 : Unitialized scalar variable
Change-Id: I36026768fb51ed80a70addfcad9b831d8e7e6d7c
Reviewed-on: https://gerrit.libreoffice.org/4405
Reviewed-by: Eike Rathke <erack at redhat.com>
Tested-by: Eike Rathke <erack at redhat.com>
diff --git a/sw/source/core/doc/htmltbl.cxx b/sw/source/core/doc/htmltbl.cxx
index d1a784b..9e0e707 100644
--- a/sw/source/core/doc/htmltbl.cxx
+++ b/sw/source/core/doc/htmltbl.cxx
@@ -1212,7 +1212,7 @@ void SwHTMLTableLayout::AutoLayoutPass2( sal_uInt16 nAbsAvail, sal_uInt16 nRelAv
sal_uLong nRealMin = 0;
for( sal_uInt16 i=0; i<nCols; i++ )
{
- sal_uLong nRealColMin = MINLAY, nDummy1, nDummy2;
+ sal_uLong nRealColMin = MINLAY, nDummy1 = 0, nDummy2 = 0;
AddBorderWidth( nRealColMin, nDummy1, nDummy2, i, 1 );
nRealMin += nRealColMin;
}
@@ -1261,7 +1261,7 @@ void SwHTMLTableLayout::AutoLayoutPass2( sal_uInt16 nAbsAvail, sal_uInt16 nRelAv
{
pColumn = GetColumn( i );
sal_uLong nColMin = pColumn->GetMin();
- sal_uLong nRealColMin = MINLAY, nDummy1, nDummy2;
+ sal_uLong nRealColMin = MINLAY, nDummy1 = 0, nDummy2 = 0;
AddBorderWidth( nRealColMin, nDummy1, nDummy2, i, 1 );
if( nColMin <= USHRT_MAX )
More information about the Libreoffice-commits
mailing list