git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fish: Fix segfault in '-a' option.
[libguestfs.git]
/
fish
/
fish.c
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);
{
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);
}
}
}
}