diff options
Diffstat (limited to 'cpukit/libmisc/monitor/mon-command.c')
-rw-r--r-- | cpukit/libmisc/monitor/mon-command.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libmisc/monitor/mon-command.c b/cpukit/libmisc/monitor/mon-command.c index 54f35cb04f..0603804823 100644 --- a/cpukit/libmisc/monitor/mon-command.c +++ b/cpukit/libmisc/monitor/mon-command.c @@ -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; |