From 4722d41b0b3aba975e22b4c275a891553fbcecb9 Mon Sep 17 00:00:00 2001 From: orbea Date: Thu, 24 Jan 2019 08:08:00 -0800 Subject: [PATCH] xmb: Fix segfault when appending disk images. --- menu/drivers/xmb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index 25e64e2bbe..8308ac8829 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -975,7 +975,7 @@ static void xmb_update_thumbnail_path(void *data, unsigned i, char pos) xmb_node_t *node = (xmb_node_t*) file_list_get_userdata_at_offset(selection_buf, i); - if (!string_is_empty(node->fullpath) && + if (node && !string_is_empty(node->fullpath) && (pos == 'R' || (pos == 'L' && string_is_equal(xmb_thumbnails_ident('R'), msg_hash_to_str(MENU_ENUM_LABEL_VALUE_OFF))))) {