]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
fix a bug about VTOY_DEFAULT_IMAGE in treeview mode issue #555
authorlongpanda <admin@ventoy.net>
Sat, 31 Oct 2020 05:38:13 +0000 (13:38 +0800)
committerlongpanda <admin@ventoy.net>
Sat, 31 Oct 2020 05:38:13 +0000 (13:38 +0800)
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy.c

index 2206b91474c59115a80d279ab13cf4d613c8c260..6e8c28e6b86abdd125104a4c86a152c5aedcf48a 100644 (file)
@@ -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;