[Libreoffice-commits] core.git: sd/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Fri Sep 3 10:05:36 UTC 2021
sd/source/filter/ppt/pptinanimations.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 6c0c3bd74e0d94f48feda9bd7663bb9b5d9fc320
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Sep 2 10:05:50 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Sep 3 12:05:03 2021 +0200
ofz: MemorySanitizer: use-of-uninitialized-value
Change-Id: Ie4fe1a4d346d3b790349132460b9efcc448d0eb4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121551
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
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<double>(nTemp) / 1000.0;
aKeyTimes[nKeyTime] = fTemp;
if( fTemp == -1 )
More information about the Libreoffice-commits
mailing list