Prevent explicit NULL dereferenced
This commit is contained in:
parent
c2713a6173
commit
917f8fa996
|
@ -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);
|
str = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_Y);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
strlcpy(s, str, len);
|
|
||||||
|
if (!string_is_empty(str))
|
||||||
|
strlcpy(s, str, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
*w = 19;
|
*w = 19;
|
||||||
|
|
Loading…
Reference in New Issue