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:
Richard Jones
2010-04-23 14:13:42 +01:00
parent 6e269c6e51
commit d054dfb2f9

View File

@@ -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);
}
}