git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e269c6
)
fish: Fix segfault in '-a' option.
author
Richard Jones
<rjones@redhat.com>
Fri, 23 Apr 2010 13:13:42 +0000
(14:13 +0100)
committer
Richard Jones
<rjones@redhat.com>
Fri, 23 Apr 2010 13:15:12 +0000
(14:15 +0100)
This fixes a segfault in the guestfish -a option which you would
get when using guestfish 1.3.6.
fish/fish.c
patch
|
blob
|
history
diff --git
a/fish/fish.c
b/fish/fish.c
index
4a7e70b
..
54989fc
100644
(file)
--- 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);
}
}