From 9a8a20e85aaef186fecc38133d118e12b847f5dc Mon Sep 17 00:00:00 2001 From: neville Date: Sun, 29 Mar 2015 19:00:57 +0200 Subject: [PATCH] (OSX PPC) Prevent one null pointer dereference --- retroarch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/retroarch.c b/retroarch.c index 33414910f4..f3fd93d0b4 100644 --- a/retroarch.c +++ b/retroarch.c @@ -2113,7 +2113,8 @@ void rarch_main_set_state(unsigned cmd) video_driver_set_texture_enable(false, false); break; case RARCH_ACTION_STATE_QUIT: - global->system.shutdown = true; + if (global) + global->system.shutdown = true; rarch_main_set_state(RARCH_ACTION_STATE_MENU_RUNNING_FINISHED); break; case RARCH_ACTION_STATE_FORCE_QUIT: