From 062c71b972184174cd3a5648999bc6982b80d393 Mon Sep 17 00:00:00 2001 From: longpanda Date: Sat, 31 Oct 2020 13:38:13 +0800 Subject: [PATCH] fix a bug about VTOY_DEFAULT_IMAGE in treeview mode issue #555 --- GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy.c b/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy.c index 2206b914..6e8c28e6 100644 --- a/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy.c +++ b/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy.c @@ -1784,8 +1784,6 @@ static int ventoy_set_default_menu(void) pos = def + 1; } - pos = def + 1; - while ((end = grub_strchr(pos, '/')) != NULL) { *end = 0;