[Scummvm-git-logs] scummvm master -> 1eb48aa90a776bc46a09a6c3d19d8e86422f8722
somaen
noreply at scummvm.org
Sat Oct 1 23:13:50 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:
1eb48aa90a GRIM: Check for success in loading material.
Commit: 1eb48aa90a776bc46a09a6c3d19d8e86422f8722
https://github.com/scummvm/scummvm/commit/1eb48aa90a776bc46a09a6c3d19d8e86422f8722
Author: Einar Johan Trøan SømaÌen (somaen at scummvm.org)
Date: 2022-10-02T01:13:10+02:00
Commit Message:
GRIM: Check for success in loading material.
Fixes COVERITY: 1433524
Changed paths:
engines/grim/resource.cpp
diff --git a/engines/grim/resource.cpp b/engines/grim/resource.cpp
index 69ee9d3971e..b4c0eba905b 100644
--- a/engines/grim/resource.cpp
+++ b/engines/grim/resource.cpp
@@ -454,6 +454,8 @@ Material *ResourceLoader::loadMaterial(const Common::String &filename, CMap *c,
error("Could not find material %s", filename.c_str());
}
}
+ if (!stream)
+ error("Couldn't open %s", fname.c_str());
Material *result = new Material(fname, stream, c, clamp);
delete stream;
More information about the Scummvm-git-logs
mailing list