mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
set_paths_redirect - prevent crash
This commit is contained in:
parent
9a2ca8cc9c
commit
90b918e7ee
@ -310,7 +310,9 @@ void set_paths_redirect(const char *path)
|
|||||||
{
|
{
|
||||||
global_t *global = global_get_ptr();
|
global_t *global = global_get_ptr();
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
uint32_t global_library_name_hash = global ? djb2_calculate(global->system.info.library_name) : 0;
|
uint32_t global_library_name_hash = ((global && global->system.info.library_name &&
|
||||||
|
(global->system.info.library_name[0] != '\0'))
|
||||||
|
? djb2_calculate(global->system.info.library_name) : 0);
|
||||||
|
|
||||||
if(
|
if(
|
||||||
global_library_name_hash != 0 &&
|
global_library_name_hash != 0 &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user