mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 01:46:42 +00:00
Zero the array before using it. You can go talk to Grace now, DrMcCoy.
svn-id: r47017
This commit is contained in:
parent
d485d0c295
commit
5fbbd5b8d9
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user