summaryrefslogtreecommitdiffstats
path: root/sys-utils/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys-utils/mount.c')
-rw-r--r--sys-utils/mount.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys-utils/mount.c b/sys-utils/mount.c
index 74a1a84f2..f7084a963 100644
--- a/sys-utils/mount.c
+++ b/sys-utils/mount.c
@@ -572,7 +572,10 @@ try_readonly:
break;
case ENODEV:
- warnx(_("unknown filesystem type '%s'"), mnt_context_get_fstype(cxt));
+ if (mnt_context_get_fstype(cxt))
+ warnx(_("unknown filesystem type '%s'"), mnt_context_get_fstype(cxt));
+ else
+ warnx(_("unknown filesystem type"));
break;
case ENOTBLK: