Fix some coverity warnings

This commit is contained in:
twinaphex 2016-06-27 20:54:05 +02:00
parent 097b02a8a1
commit 36c235556a
2 changed files with 3 additions and 1 deletions

View File

@ -4466,7 +4466,7 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
case DISPLAYLIST_CORE_CONTENT_DIRS:
{
#ifdef HAVE_NETWORKING
char new_label[PATH_MAX_LENGTH];
char new_label[PATH_MAX_LENGTH] = {0};
fill_pathname_join(new_label, settings->network.buildbot_assets_url, "cores", sizeof(new_label));
print_buf_lines(info->list, core_buf, new_label,
core_len, FILE_TYPE_DOWNLOAD_URL);

View File

@ -379,6 +379,8 @@ error:
nbio_free(handle);
task_image_load_free(t);
free(t);
if (nbio)
free(nbio);
error_msg:
RARCH_ERR("[image load] Failed to open '%s': %s.\n",