summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fish/fish.c3
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);
}
}