From fb4bf99a31da02dc627fa7b2e51a2ba8f9b12aed Mon Sep 17 00:00:00 2001 From: radius Date: Mon, 22 Jan 2018 21:48:17 -0500 Subject: [PATCH] attempt to fix #6154 --- menu/drivers/xmb.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index 71fa92e811..fde2cf04f6 100755 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -947,9 +947,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);