mirror of
https://github.com/libretro/RetroArch
synced 2025-03-20 10:20:51 +00:00
Merge pull request #1652 from chris062689/master
Added check to make sure ident was not an empty string.
This commit is contained in:
commit
feded9aebf
@ -90,7 +90,7 @@ static bool input_try_autoconfigure_joypad_from_conf(config_file_t *conf,
|
||||
}
|
||||
|
||||
/* Check for name match - name starts with ident */
|
||||
if (!strncmp(params->name, ident, strlen(ident)))
|
||||
if (ident[0] != '\0' && !strncmp(params->name, ident, strlen(ident)))
|
||||
{
|
||||
BIT32_SET(*match, AUTODETECT_MATCH_IDENT);
|
||||
ret = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user