mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +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,
|
static void setting_get_string_representation_uint_analog_dpad_mode(void *data,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user