mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 03:40:24 +00:00
Fix explicit null dereference warning
This commit is contained in:
parent
f6148edb2d
commit
4137d33e46
@ -1706,10 +1706,9 @@ static int generic_action_ok_remap_file_save(const char *path,
|
||||
fill_pathname_join(file, core_name, core_name, sizeof(file));
|
||||
break;
|
||||
case ACTION_OK_REMAP_FILE_SAVE_GAME:
|
||||
{
|
||||
const char *game_name = path_basename(path_get_basename());
|
||||
fill_pathname_join(file, core_name, game_name, sizeof(file));
|
||||
}
|
||||
if (core_name)
|
||||
fill_pathname_join(file, core_name,
|
||||
path_basename(path_get_basename()), sizeof(file));
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user