mirror of
https://github.com/libretro/RetroArch
synced 2025-04-17 02:43:03 +00:00
action_ok_database_manager_list - prevent crash when label and
path are NULL
This commit is contained in:
parent
cc56ca7c42
commit
c4a6562ce1
@ -1111,6 +1111,10 @@ static int action_ok_database_manager_list(const char *path,
|
||||
const char *label, unsigned type, size_t idx)
|
||||
{
|
||||
char rdb_path[PATH_MAX_LENGTH];
|
||||
if (!path)
|
||||
return -1;
|
||||
if (!label)
|
||||
return -1;
|
||||
|
||||
fill_pathname_join(rdb_path, g_settings.content_database,
|
||||
path, sizeof(rdb_path));
|
||||
|
Loading…
x
Reference in New Issue
Block a user