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

Strangerke noreply at scummvm.org
Thu Jan 16 06:28:36 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:
f52eff6b38 GOT: Fix PVS Studio issue (V769) in script


Commit: f52eff6b38dec505cf60fcd6d85c18a54558cc92
    https://github.com/scummvm/scummvm/commit/f52eff6b38dec505cf60fcd6d85c18a54558cc92
Author: Strangerke (arnaud.boutonne at gmail.com)
Date: 2025-01-16T07:28:14+01:00

Commit Message:
GOT: Fix PVS Studio issue (V769) in script

Changed paths:
    engines/got/game/script.cpp


diff --git a/engines/got/game/script.cpp b/engines/got/game/script.cpp
index e0daf2179fc..0bec52ecfe4 100644
--- a/engines/got/game/script.cpp
+++ b/engines/got/game/script.cpp
@@ -504,7 +504,7 @@ int Scripts::read_script_file() {
 
 	sbuff = (char *)malloc(25000l);
 	sb = sbuff;
-	if (!sbuff) {
+	if (!sb) {
 		ret = 1;
 		goto done;
 	};




More information about the Scummvm-git-logs mailing list