mirror of
https://github.com/libretro/RetroArch
synced 2025-04-03 10:21:31 +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();
|
settings_t *settings = config_get_ptr();
|
||||||
global_t *global = global_get_ptr();
|
global_t *global = global_get_ptr();
|
||||||
|
|
||||||
if (!path)
|
if (!path || !global)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
/* If config file to be replaced is the same as the
|
/* If config file to be replaced is the same as the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user