Prevent explicit NULL dereferenced

This commit is contained in:
twinaphex 2016-10-26 03:19:46 +02:00
parent c2713a6173
commit 917f8fa996

View File

@ -506,7 +506,9 @@ static void menu_action_setting_disp_set_label_input_desc(
str = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_Y);
break;
}
strlcpy(s, str, len);
if (!string_is_empty(str))
strlcpy(s, str, len);
}
*w = 19;