mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 14:50:17 +00:00
ZVISION: Fix dereference after null check (CID 1257091)
This commit is contained in:
parent
617623e9bf
commit
169bed1e5e
@ -73,6 +73,9 @@ RawChunkStream::RawChunk RawChunkStream::readNextChunk(Common::SeekableReadStrea
|
||||
tmp.size = 0;
|
||||
tmp.data = NULL;
|
||||
|
||||
if (!stream)
|
||||
return tmp;
|
||||
|
||||
if (stream && (stream->size() == 0 || stream->eos()))
|
||||
return tmp;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user