diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-05-11 09:27:49 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-05-15 10:15:20 +0200 |
commit | 0ce23d3f971c227b0a9e2ed9a11cc225e08bc18f (patch) | |
tree | feabe6cf2f7cf3bcd4bb4cb9c796e9739372a680 /starmath | |
parent | d2acd20d4ff29349b82c0e562139af8a14d9df42 (diff) |
Related: ofz#8226 + valgrind: uninitialized value
Change-Id: I63dea876dffe2d9e17b506dbd8515da2d97fbf08
Reviewed-on: https://gerrit.libreoffice.org/54114
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Tested-by: Jenkins <ci@libreoffice.org>
(cherry picked from commit 0ec74577a97ca51d50e0f3782c289c95c6430641)
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/mathtype.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx index 20486fc9a922..a14dd25c84c2 100644 --- a/starmath/source/mathtype.cxx +++ b/starmath/source/mathtype.cxx @@ -2852,7 +2852,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)) @@ -2865,7 +2865,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; } |