[Scummvm-git-logs] scummvm master -> f2f00d977438e257e3f23df5a12eaf884dd61bc2

rvanlaar noreply at scummvm.org
Mon Sep 26 11:02:44 UTC 2022


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
f2f00d9774 DIRECTOR: Fix Unitialized scalar field


Commit: f2f00d977438e257e3f23df5a12eaf884dd61bc2
    https://github.com/scummvm/scummvm/commit/f2f00d977438e257e3f23df5a12eaf884dd61bc2
Author: Roland van Laar (roland at rolandvanlaar.nl)
Date: 2022-09-26T13:00:41+02:00

Commit Message:
DIRECTOR: Fix Unitialized scalar field

Give BitmapCastMember constructor a default tag of 0.

Fixes COVERITY: 1490381

Changed paths:
    engines/director/castmember.cpp


diff --git a/engines/director/castmember.cpp b/engines/director/castmember.cpp
index 82372265dac..526f7c567d9 100644
--- a/engines/director/castmember.cpp
+++ b/engines/director/castmember.cpp
@@ -212,6 +212,7 @@ BitmapCastMember::BitmapCastMember(Cast *cast, uint16 castId, Image::ImageDecode
 	_regX = img->getSurface()->w / 2;
 	_flags1 = flags1;
 	_flags2 = 0;
+	_tag = 0;
 }
 
 BitmapCastMember::~BitmapCastMember() {




More information about the Scummvm-git-logs mailing list