Fix crash that can happen in menu_action_setting_disp_set_label_entry
This commit is contained in:
parent
f84f829957
commit
e9afd53351
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue