[Scummvm-git-logs] scummvm master -> 138ff350dffbeae09217b4dbe77ecabc5d1e4e05
Strangerke
noreply at scummvm.org
Wed May 21 05:33:37 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:
138ff350df AWE: Fix PVStudio V730 in resource_nth and resource_win31
Commit: 138ff350dffbeae09217b4dbe77ecabc5d1e4e05
https://github.com/scummvm/scummvm/commit/138ff350dffbeae09217b4dbe77ecabc5d1e4e05
Author: Strangerke (arnaud.boutonne at gmail.com)
Date: 2025-05-21T06:33:31+01:00
Commit Message:
AWE: Fix PVStudio V730 in resource_nth and resource_win31
Changed paths:
engines/awe/resource_nth.cpp
engines/awe/resource_win31.cpp
diff --git a/engines/awe/resource_nth.cpp b/engines/awe/resource_nth.cpp
index 889cc52c2e8..dcc4b1e821c 100644
--- a/engines/awe/resource_nth.cpp
+++ b/engines/awe/resource_nth.cpp
@@ -288,10 +288,11 @@ struct Resource20th : ResourceNth {
char _datName[32];
const char *_bitmapSize;
- Resource20th() : _textBuf(nullptr) {
+ Resource20th() : _textBuf(nullptr), _bitmapSize(nullptr) {
memset(_stringsTable, 0, sizeof(_stringsTable));
_musicType = 0;
_datName[0] = 0;
+ _musicName[0] = 0;
}
virtual ~Resource20th() {
diff --git a/engines/awe/resource_win31.cpp b/engines/awe/resource_win31.cpp
index 1b4f23d740f..3bff9bc5147 100644
--- a/engines/awe/resource_win31.cpp
+++ b/engines/awe/resource_win31.cpp
@@ -113,6 +113,7 @@ struct LzHuffman {
memset(_child, 0, sizeof(_child));
memset(_freq, 0, sizeof(_freq));
memset(_parent, 0, sizeof(_parent));
+ memset(_historyBuffer, 0, sizeof(_historyBuffer));
}
void resetHuffTables() {
More information about the Scummvm-git-logs
mailing list