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;