Merge pull request #6155 from fr500/master

attempt to fix #6154
This commit is contained in:
Twinaphex 2018-01-23 04:31:06 +01:00 committed by GitHub
commit 7902fdafd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -953,9 +953,12 @@ static void xmb_update_thumbnail_path(void *data, unsigned i)
char *tmp_new = (char*)
malloc(PATH_MAX_LENGTH * sizeof(char));
if (!string_is_empty(xmb->thumbnail_file_path))
xmb->thumbnail_file_path[0] = '\0';
menu_entry_init(&entry);
if (!xmb)
if (!xmb || string_is_empty(settings->paths.directory_thumbnails))
goto end;
menu_entry_get(&entry, 0, i, NULL, true);