2003-01-27 Dan Smisko <dan@balanced.com>

* monitor/mon-command.c: Correct two potential NULL references.
This commit is contained in:
Joel Sherrill
2003-01-27 16:13:28 +00:00
parent 7210dcb41a
commit 62e080e114
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -1,3 +1,7 @@
2003-01-27 Dan Smisko <dan@balanced.com>
* monitor/mon-command.c: Correct two potential NULL references.
2002-01-25 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Fix tests for GCC.
+2 -2
View File
@@ -551,7 +551,7 @@ rtems_monitor_command_lookup(
*/
if (found_it)
{
if (table->command_function == 0)
if (found_it->command_function == 0)
return 0;
return found_it;
@@ -686,7 +686,7 @@ rtems_monitor_command_usage(
while (command)
{
int len = strlen (command->command);
int len = command->command ? strlen (command->command) : 0 ;
if (len > max_cmd_len)
max_cmd_len = len;