From 5fbbd5b8d998b086a20749e79aee4e9ab81b8cc9 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Tue, 5 Jan 2010 04:00:13 +0000 Subject: Zero the array before using it. You can go talk to Grace now, DrMcCoy. svn-id: r47017 --- engines/sci/engine/segment.h | 1 + 1 file changed, 1 insertion(+) (limited to 'engines') 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) { -- cgit v1.2.3