summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--df/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/df/main.c b/df/main.c
index 9565464b..55e5eaa8 100644
--- a/df/main.c
+++ b/df/main.c
@@ -279,6 +279,8 @@ main (int argc, char *argv[])
switch (drvs->type) {
case drv_a:
name = strrchr (drvs->a.filename, '/');
+ if (name == NULL)
+ name = drvs->a.filename;
break;
case drv_d:
name = drvs->d.guest;