mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +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();
|
||||
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(
|
||||
global_library_name_hash != 0 &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user