diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-19 14:59:35 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-19 14:59:35 +0000 |
commit | eb961961837bd288fb57799c189326fc944047b5 (patch) | |
tree | e857eea22b553b5288811467a2089ab87ad368ad /cpukit/libmisc/monitor/mon-editor.c | |
parent | 52410c26958d3bd2c0256a33ec45dfc8f6161354 (diff) |
2008-12-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libblock/src/ide_part_table.c: Fixed NULL pointer access.
* libmisc/monitor/mon-command.c, libmisc/monitor/mon-editor.c,
libmisc/monitor/mon-monitor.c, libmisc/monitor/monitor.h,
libmisc/shell/cmds.c: The list of registered monitor commands is now
private and only accessible via a lookup and iterate function.
Diffstat (limited to 'cpukit/libmisc/monitor/mon-editor.c')
-rw-r--r-- | cpukit/libmisc/monitor/mon-editor.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/cpukit/libmisc/monitor/mon-editor.c b/cpukit/libmisc/monitor/mon-editor.c index c204e2716c..de10a02317 100644 --- a/cpukit/libmisc/monitor/mon-editor.c +++ b/cpukit/libmisc/monitor/mon-editor.c @@ -597,12 +597,10 @@ rtems_monitor_task( if (0 == rtems_monitor_command_read(command_buffer, &argc, argv)) continue; if (argc < 1 - || (command = rtems_monitor_command_lookup(rtems_monitor_commands, - argv [0])) == 0) - { - /* no command */ - fprintf(stdout,"Unrecognised command; try 'help'\n"); - continue; + || (command = rtems_monitor_command_lookup(argv [0])) == 0) { + /* no command */ + fprintf(stdout,"Unrecognised command; try 'help'\n"); + continue; } command->command_function(argc, argv, &command->command_arg, verbose); |