From e1830e7c85ec6d90127107babd563d82d935a380 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 11 May 2018 09:27:49 +0100 Subject: Related: ofz#8226 + valgrind: uninitialized value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I63dea876dffe2d9e17b506dbd8515da2d97fbf08 Reviewed-on: https://gerrit.libreoffice.org/54113 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- starmath/source/mathtype.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'starmath') diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx index 16d18775491a..1a6f319314ea 100644 --- a/starmath/source/mathtype.cxx +++ b/starmath/source/mathtype.cxx @@ -2843,7 +2843,7 @@ void MathType::HandleSetSize() bool MathType::HandleChar(sal_Int32 &rTextStart, int &rSetSize, int nLevel, sal_uInt8 nTag, sal_uInt8 nSelector, sal_uInt8 nVariation, bool bSilent) { - sal_Unicode nChar; + sal_Unicode nChar(0); bool bRet = true; if (xfAUTO(nTag)) @@ -2856,7 +2856,7 @@ bool MathType::HandleChar(sal_Int32 &rTextStart, int &rSetSize, int nLevel, pS->ReadUChar( nTypeFace ); if (nVersion < 3) { - sal_uInt8 nChar8; + sal_uInt8 nChar8(0); pS->ReadUChar( nChar8 ); nChar = nChar8; } -- cgit