mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 15:02:39 +00:00
Fixed crash in lump filtering caused by uninitialized variables
This commit is contained in:
parent
747e160c96
commit
8b92c45f84
1 changed files with 2 additions and 0 deletions
|
@ -450,6 +450,8 @@ bool FResourceFile::FindPrefixRange(FString filter, void *lumps, size_t lumpsize
|
|||
FResourceLump *lump;
|
||||
int cmp;
|
||||
|
||||
end = start = 0;
|
||||
|
||||
// Pretend that our range starts at 1 instead of 0 so that we can avoid
|
||||
// unsigned overflow if the range starts at the first lump.
|
||||
lumps = (BYTE *)lumps - lumpsize;
|
||||
|
|
Loading…
Reference in a new issue