mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
config_replace - do early return if global is NULL
This commit is contained in:
parent
2520a8a5f6
commit
2009c72baa
@ -3157,7 +3157,7 @@ bool config_replace(char *path)
|
||||
settings_t *settings = config_get_ptr();
|
||||
global_t *global = global_get_ptr();
|
||||
|
||||
if (!path)
|
||||
if (!path || !global)
|
||||
return false;
|
||||
|
||||
/* If config file to be replaced is the same as the
|
||||
|
Loading…
x
Reference in New Issue
Block a user