mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Silence some Coverity warnings
This commit is contained in:
parent
dabbaee7b9
commit
eb8b31df3c
@ -1368,18 +1368,27 @@ static void mui_frame(void *data, video_frame_info_t *video_info)
|
||||
|
||||
if (menu_input_dialog_get_display_kb())
|
||||
{
|
||||
const char *str = menu_input_dialog_get_buffer();
|
||||
const char *label = menu_input_dialog_get_label_buffer();
|
||||
const char *str = menu_input_dialog_get_buffer();
|
||||
const char *label = menu_input_dialog_get_label_buffer();
|
||||
float *body_bg_color_ptr = &body_bg_color[0];
|
||||
|
||||
menu_display_draw_quad(0, 0, width, height, width, height, &black_bg[0]);
|
||||
snprintf(msg, sizeof(msg), "%s\n%s", label, str);
|
||||
mui_render_messagebox(mui, video_info, msg, &body_bg_color[0], font_hover_color);
|
||||
|
||||
if (body_bg_color_ptr)
|
||||
mui_render_messagebox(mui, video_info,
|
||||
msg, body_bg_color_ptr, font_hover_color);
|
||||
}
|
||||
|
||||
if (!string_is_empty(mui->box_message))
|
||||
{
|
||||
float *body_bg_color_ptr = &body_bg_color[0];
|
||||
|
||||
menu_display_draw_quad(0, 0, width, height, width, height, &black_bg[0]);
|
||||
mui_render_messagebox(mui, video_info, mui->box_message, &body_bg_color[0], font_hover_color);
|
||||
|
||||
if (body_bg_color_ptr)
|
||||
mui_render_messagebox(mui, video_info,
|
||||
mui->box_message, body_bg_color_ptr, font_hover_color);
|
||||
mui->box_message[0] = '\0';
|
||||
}
|
||||
|
||||
|
@ -2939,7 +2939,8 @@ static int menu_displaylist_parse_horizontal_content_actions(
|
||||
{
|
||||
const char *ext = path_get_extension(entry_path);
|
||||
|
||||
if (audio_driver_mixer_extension_supported(ext))
|
||||
if (!string_is_empty(ext) &&
|
||||
audio_driver_mixer_extension_supported(ext))
|
||||
{
|
||||
menu_entries_append_enum(info->list,
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ADD_TO_MIXER),
|
||||
|
Loading…
x
Reference in New Issue
Block a user