forked from Imagelibrary/rtems
2010-06-24 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1587/filesystem Coverity Id 35 * libfs/src/rfs/rtems-rfs-shell.c: Address possible NULL dereference.
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user