[Scummvm-git-logs] scummvm master -> 165aef91c2d7c42c5ca89a08d8a1163d4d1ecdb8

Strangerke noreply at scummvm.org
Wed Jan 15 22:47:35 UTC 2025


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:
165aef91c2 GOT: Fix one more PVS-Studio issue in file.cpp


Commit: 165aef91c2d7c42c5ca89a08d8a1163d4d1ecdb8
    https://github.com/scummvm/scummvm/commit/165aef91c2d7c42c5ca89a08d8a1163d4d1ecdb8
Author: Strangerke (arnaud.boutonne at gmail.com)
Date: 2025-01-15T23:47:28+01:00

Commit Message:
GOT: Fix one more PVS-Studio issue in file.cpp

Changed paths:
    engines/got/utils/file.cpp


diff --git a/engines/got/utils/file.cpp b/engines/got/utils/file.cpp
index 0882f3f0e13..0ad529269ce 100644
--- a/engines/got/utils/file.cpp
+++ b/engines/got/utils/file.cpp
@@ -44,10 +44,7 @@ bool load_speech(int index) {
 	char tmps[5];
 
 	Common::String fname = Common::String::format("SPEAK%d", _G(area));
-
 	char *sp = new char[30000];
-	if (!sp)
-		return false;
 
 	if (res_read(fname, sp) < 0) {
 		delete[] sp;




More information about the Scummvm-git-logs mailing list