mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
fish: Fix segfault in '-a' option.
This fixes a segfault in the guestfish -a option which you would get when using guestfish 1.3.6.
This commit is contained in:
@@ -550,7 +550,8 @@ prepare_drives (struct drv *drv)
|
||||
{
|
||||
if (drv) {
|
||||
prepare_drives (drv->next);
|
||||
prepare_drive (drv->filename, drv->data, drv->device);
|
||||
if (drv->data)
|
||||
prepare_drive (drv->filename, drv->data, drv->device);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user