summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libfs')
-rw-r--r--cpukit/libfs/src/rfs/rtems-rfs-shell.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpukit/libfs/src/rfs/rtems-rfs-shell.c b/cpukit/libfs/src/rfs/rtems-rfs-shell.c
index c192c9d0fe..a11b68cecf 100644
--- a/cpukit/libfs/src/rfs/rtems-rfs-shell.c
+++ b/cpukit/libfs/src/rfs/rtems-rfs-shell.c
@@ -738,6 +738,11 @@ rtems_shell_rfs_format (int argc, char* argv[])
}
}
+ if (!driver) {
+ printf ("error: no driver name provided\n");
+ return 1;
+ }
+
if (rtems_rfs_format (driver, &config) < 0)
{
printf ("error: format of %s failed: %s\n",