Add early return to rarch_fail
This commit is contained in:
parent
105a12287d
commit
96012b2eee
|
@ -139,6 +139,9 @@ static INLINE void rarch_fail(int error_code, const char *error)
|
||||||
{
|
{
|
||||||
global_t *global = global_get_ptr();
|
global_t *global = global_get_ptr();
|
||||||
|
|
||||||
|
if (!global)
|
||||||
|
return;
|
||||||
|
|
||||||
/* We cannot longjmp unless we're in rarch_main_init().
|
/* We cannot longjmp unless we're in rarch_main_init().
|
||||||
* If not, something went very wrong, and we should
|
* If not, something went very wrong, and we should
|
||||||
* just exit right away. */
|
* just exit right away. */
|
||||||
|
|
Loading…
Reference in New Issue