Silence some Coverity warnings

This commit is contained in:
twinaphex 2017-05-28 19:06:15 +02:00
parent c7825e4708
commit ffe0987454
2 changed files with 5 additions and 1 deletions

View File

@ -1735,6 +1735,8 @@ static int action_ok_audio_add_to_mixer_and_collection(const char *path,
char combined_path[PATH_MAX_LENGTH];
menu_handle_t *menu = NULL;
combined_path[0] = '\0';
if (!menu_driver_ctl(RARCH_MENU_CTL_DRIVER_DATA_GET, &menu))
return menu_cbs_exit();

View File

@ -4115,6 +4115,8 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
{
char combined_path[PATH_MAX_LENGTH];
combined_path[0] = '\0';
fill_pathname_join(combined_path, menu->scratch2_buf,
menu->scratch_buf, sizeof(combined_path));
@ -4281,7 +4283,7 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
menu_entries_ctl(MENU_ENTRIES_CTL_CLEAR, info->list);
if (string_is_equal(info->path, file_path_str(FILE_PATH_CONTENT_HISTORY)))
{
if (menu_displaylist_ctl(DISPLAYLIST_HISTORY, info) && info)
if (menu_displaylist_ctl(DISPLAYLIST_HISTORY, info))
return menu_displaylist_process(info);
return false;
}