diff options
author | Richard Jones <rjones@redhat.com> | 2010-04-23 14:13:42 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2010-04-23 14:15:12 +0100 |
commit | d054dfb2f948f53188f448d2c7fade83db9bbab8 (patch) | |
tree | 992329f7cc3c085c685d4e0489c242f08b947efd /fish/fish.c | |
parent | 6e269c6e5123c1558589e0a59844dc0187fbd63a (diff) | |
download | libguestfs-d054dfb2f948f53188f448d2c7fade83db9bbab8.tar.gz libguestfs-d054dfb2f948f53188f448d2c7fade83db9bbab8.tar.xz libguestfs-d054dfb2f948f53188f448d2c7fade83db9bbab8.zip |
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.
Diffstat (limited to 'fish/fish.c')
-rw-r--r-- | fish/fish.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fish/fish.c b/fish/fish.c index 4a7e70b8..54989fc9 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); } } |