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

mduggan noreply at scummvm.org
Mon Apr 21 10:34:02 UTC 2025


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

Summary:
c98c027460 DGDS: Clear vals on freshly allocated menu TextItem


Commit: c98c0274605387e0c4583be962ae2079109f38f3
    https://github.com/scummvm/scummvm/commit/c98c0274605387e0c4583be962ae2079109f38f3
Author: Matthew Duggan (mgithub at guarana.org)
Date: 2025-04-21T20:31:29+10:00

Commit Message:
DGDS: Clear vals on freshly allocated menu TextItem

The vals are never used for anything, but make coverity happy.  CID #1592971.

Changed paths:
    engines/dgds/menu.cpp


diff --git a/engines/dgds/menu.cpp b/engines/dgds/menu.cpp
index 3cf36f66f5b..ef32b83e4c0 100644
--- a/engines/dgds/menu.cpp
+++ b/engines/dgds/menu.cpp
@@ -817,6 +817,7 @@ void Menu::doVcrHelp(int16 button) {
 			helpText._x = msgAreaLeft + (msgAreaWidth - msgLen) / 2;
 			helpText._y = msgTop;
 			helpText._txt = line;
+			ARRAYCLEAR(helpText._vals);
 			msgTop += font->getFontHeight();
 			helpRequest._textItemList.push_back(helpText);
 		}




More information about the Scummvm-git-logs mailing list