mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Prevent another NULL pointer dereference
This commit is contained in:
parent
4feab7a268
commit
67f850c3dc
@ -41,7 +41,7 @@ struct memstream
|
||||
|
||||
static void memstream_update_pos(memstream_t *stream)
|
||||
{
|
||||
if (stream->ptr > stream->max_ptr)
|
||||
if (stream && stream->ptr > stream->max_ptr)
|
||||
stream->max_ptr = stream->ptr;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user