mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-25 02:10:45 +08:00
2003-01-27 Dan Smisko <dan@balanced.com>
* monitor/mon-command.c: Correct two potential NULL references.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user