From 96012b2eeef98ab4a2cf7390a2be75e8120bca85 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 29 Mar 2015 19:17:59 +0200 Subject: [PATCH] Add early return to rarch_fail --- general.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/general.h b/general.h index e519d4e345..f1b20aa21c 100644 --- a/general.h +++ b/general.h @@ -139,6 +139,9 @@ static INLINE void rarch_fail(int error_code, const char *error) { global_t *global = global_get_ptr(); + if (!global) + return; + /* We cannot longjmp unless we're in rarch_main_init(). * If not, something went very wrong, and we should * just exit right away. */