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:
Joel Sherrill
2010-06-24 13:28:39 +00:00
parent d290bbb5b2
commit eb8c45dfdf
2 changed files with 11 additions and 0 deletions

View File

@@ -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",