Fix another Coverity error

This commit is contained in:
twinaphex 2017-09-30 17:09:52 +02:00
parent 73d1539bb0
commit 455b202142

View File

@ -926,10 +926,11 @@ static void xmb_update_thumbnail_path(void *data, unsigned i)
char *tmp_new = (char*)
malloc(PATH_MAX_LENGTH * sizeof(char));
menu_entry_init(&entry);
if (!xmb)
goto end;
menu_entry_init(&entry);
menu_entry_get(&entry, 0, i, NULL, true);
entry_type = menu_entry_get_type_new(&entry);