From 6c0c3bd74e0d94f48feda9bd7663bb9b5d9fc320 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 2 Sep 2021 10:05:50 +0100 Subject: ofz: MemorySanitizer: use-of-uninitialized-value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ie4fe1a4d346d3b790349132460b9efcc448d0eb4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121551 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sd/source/filter/ppt/pptinanimations.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sd') diff --git a/sd/source/filter/ppt/pptinanimations.cxx b/sd/source/filter/ppt/pptinanimations.cxx index 313a724ec639..d03efbc87980 100644 --- a/sd/source/filter/ppt/pptinanimations.cxx +++ b/sd/source/filter/ppt/pptinanimations.cxx @@ -2129,13 +2129,13 @@ void AnimationImporter::importAnimateKeyPoints( const Atom* pAtom, const Referen OUString aFormula; pIter = pAtom->findFirstChildAtom(DFF_msofbtAnimKeyTime); - sal_Int32 nTemp; bool bToNormalize = false; for( int nKeyTime = 0; (nKeyTime < nKeyTimes) && pIter; nKeyTime++ ) { if( pIter->seekToContent() ) { - mrStCtrl.ReadInt32( nTemp ); + sal_Int32 nTemp(0); + mrStCtrl.ReadInt32(nTemp); double fTemp = static_cast(nTemp) / 1000.0; aKeyTimes[nKeyTime] = fTemp; if( fTemp == -1 ) -- cgit