From d054dfb2f948f53188f448d2c7fade83db9bbab8 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Fri, 23 Apr 2010 14:13:42 +0100 Subject: [PATCH] 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. --- fish/fish.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } } -- 1.8.3.1