mirror of
https://git.proxmox.com/git/grub2
synced 2025-08-05 12:04:42 +00:00
Fix *end restoring
This commit is contained in:
parent
aa68ca1250
commit
706c46bdca
@ -164,16 +164,19 @@ FUNC_NAME (const char *key, const char *var, int no_floppy,
|
|||||||
dev = grub_device_open (hints[i]);
|
dev = grub_device_open (hints[i]);
|
||||||
if (!dev)
|
if (!dev)
|
||||||
{
|
{
|
||||||
|
if (!*end)
|
||||||
*end = ',';
|
*end = ',';
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!dev->disk)
|
if (!dev->disk)
|
||||||
{
|
{
|
||||||
grub_device_close (dev);
|
grub_device_close (dev);
|
||||||
|
if (!*end)
|
||||||
*end = ',';
|
*end = ',';
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
ret = grub_partition_iterate (dev->disk, part_hook);
|
ret = grub_partition_iterate (dev->disk, part_hook);
|
||||||
|
if (!*end)
|
||||||
*end = ',';
|
*end = ',';
|
||||||
grub_device_close (dev);
|
grub_device_close (dev);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
Loading…
Reference in New Issue
Block a user