From: Richard Jones Date: Fri, 23 Apr 2010 13:13:42 +0000 (+0100) Subject: fish: Fix segfault in '-a' option. X-Git-Tag: 1.3.7~5 X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=commitdiff_plain;h=d054dfb2f948f53188f448d2c7fade83db9bbab8 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. --- diff --git a/fish/fish.c b/fish/fish.c index 4a7e70b..54989fc 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -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); } }