Fix crash that can happen in menu_action_setting_disp_set_label_entry

This commit is contained in:
LibretroAdmin 2025-01-21 03:50:46 +01:00
parent f84f829957
commit e9afd53351

View File

@ -1056,7 +1056,8 @@ static void menu_action_setting_disp_set_label_entry(
{
*s = '\0';
*w = 8;
strlcpy(s2, path, len2);
if (!string_is_empty(path))
strlcpy(s2, path, len2);
}
#ifdef HAVE_BLUETOOTH