aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMatthew Hoops2010-01-05 04:00:13 +0000
committerMatthew Hoops2010-01-05 04:00:13 +0000
commit5fbbd5b8d998b086a20749e79aee4e9ab81b8cc9 (patch)
tree0e72d0a82f8e2773d9b6ace83377bc8c23168ca9 /engines
parentd485d0c2959a57141bed12be95f69d1a0c7fb4d6 (diff)
downloadscummvm-rg350-5fbbd5b8d998b086a20749e79aee4e9ab81b8cc9.tar.gz
scummvm-rg350-5fbbd5b8d998b086a20749e79aee4e9ab81b8cc9.tar.bz2
scummvm-rg350-5fbbd5b8d998b086a20749e79aee4e9ab81b8cc9.zip
Zero the array before using it. You can go talk to Grace now, DrMcCoy.
svn-id: r47017
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/engine/segment.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/sci/engine/segment.h b/engines/sci/engine/segment.h
index 62f970722e..9e65186c31 100644
--- a/engines/sci/engine/segment.h
+++ b/engines/sci/engine/segment.h
@@ -740,6 +740,7 @@ public:
// So, we're going to have to create an array of some sort
T *newArray = new T[size];
+ memset(newArray, 0, size * sizeof(T));
// Check if we never created an array before
if (!_data) {