#421 closed defect (duplicate)

Shell doesn't check for a end of list when adding monitor commands

Reported by: mikeci Owned by: Ralf Corsepius
Priority: lowest Milestone: 2
Component: unspecified Version: 4.6
Severity: normal Keywords:
Cc: bugs@…, ralf.corsepius@… Blocked By:
Blocking:

Description

In cmds.c there is a bug. In function register_cmds when adding monitor commands the while loop should test for NULL string in the command field:

while(command->command) /* we need to check if command is a NULL string */

and not if command is a NULL pointer because the last entry in the monitor table is not NULL.

Also in the present form both files are unreadable. I applied C beautifier on them.

Release:
RTEMS-4.6

Attachments (1)

shell.zip (10.6 KB) - added by mikeci on 12/03/06 at 13:31:13.
shell.zip

Download all attachments as: .zip

Change History (3)

comment:1 Changed on 07/09/03 at 06:15:28 by Ralf Corsepius

Status: assignedclosed

* This bug has been marked as a duplicate of 422 *

Changed on 12/03/06 at 13:31:13 by mikeci

Attachment: shell.zip added

shell.zip

comment:2 Changed on 10/10/17 at 06:35:44 by Sebastian Huber

Component: miscunspecified
Note: See TracTickets for help on using tickets.