mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Prevent null pointer dereference
This commit is contained in:
parent
23f91bf8d4
commit
30a46a5ab9
@ -685,7 +685,7 @@ bool runloop_ctl(enum runloop_ctl_state state, void *data)
|
||||
|
||||
/* retro_run() will be called in very strange and
|
||||
* mysterious ways, have to disable it. */
|
||||
if (global->netplay.enable)
|
||||
if (global && global->netplay.enable)
|
||||
return false;
|
||||
#endif
|
||||
runloop_frame_time = *info;
|
||||
|
Loading…
x
Reference in New Issue
Block a user