mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 01:46:42 +00:00
SCUMM: Initialize memory on allocation
This commit is contained in:
parent
cd9512d4b2
commit
1196f86b4b
@ -357,7 +357,7 @@ int32 decompressCodec(int32 codec, byte *compInput, byte *compOutput, int32 inpu
|
||||
for (z = 1; z < outputSize; z++)
|
||||
p[z] += p[z - 1];
|
||||
|
||||
t_table = (byte *)malloc(outputSize);
|
||||
t_table = (byte *)calloc(outputSize, 1);
|
||||
assert(t_table);
|
||||
|
||||
src = compOutput;
|
||||
|
Loading…
x
Reference in New Issue
Block a user