From 30a46a5ab94a19e10fe2b0054b437bd774ea9db6 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 29 Sep 2016 10:07:41 +0200 Subject: [PATCH] Prevent null pointer dereference --- runloop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runloop.c b/runloop.c index 19b8f24ee2..0b38a08fa8 100644 --- a/runloop.c +++ b/runloop.c @@ -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;