mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-25 00:49:47 +00:00
Check if name is empty first
This commit is contained in:
parent
85e2aeeaaf
commit
d2cfc3cb17
@ -386,7 +386,8 @@ static void setting_get_string_representation_uint_libretro_device(void *data,
|
||||
}
|
||||
}
|
||||
|
||||
strlcpy(s, name, len);
|
||||
if (!string_is_empty(name))
|
||||
strlcpy(s, name, len);
|
||||
}
|
||||
|
||||
static void setting_get_string_representation_uint_analog_dpad_mode(void *data,
|
||||
|
Loading…
Reference in New Issue
Block a user