[Scummvm-cvs-logs] scummvm master -> 925347bd4d0e39f91665c7d2b4e6395d640ed6cb
fuzzie
fuzzie at fuzzie.org
Sat Jul 2 01:29:22 CEST 2011
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:
925347bd4d MOHAWK: Don't allocate zero-size array.
Commit: 925347bd4d0e39f91665c7d2b4e6395d640ed6cb
https://github.com/scummvm/scummvm/commit/925347bd4d0e39f91665c7d2b4e6395d640ed6cb
Author: Alyssa Milburn (fuzzie at fuzzie.org)
Date: 2011-07-01T16:27:19-07:00
Commit Message:
MOHAWK: Don't allocate zero-size array.
Changed paths:
engines/mohawk/livingbooks_code.cpp
diff --git a/engines/mohawk/livingbooks_code.cpp b/engines/mohawk/livingbooks_code.cpp
index 21b9842..95f3261 100644
--- a/engines/mohawk/livingbooks_code.cpp
+++ b/engines/mohawk/livingbooks_code.cpp
@@ -128,7 +128,7 @@ Common::Rect LBValue::toRect() const {
LBCode::LBCode(MohawkEngine_LivingBooks *vm, uint16 baseId) : _vm(vm) {
if (!baseId) {
- _data = new byte[0];
+ _data = NULL;
_size = 0;
return;
}
More information about the Scummvm-git-logs
mailing list