MicroVAX1: Fix NULL reference check in boot command parsing (COVERITY)
This commit is contained in:
parent
44587a17c5
commit
df3f49c7a0
1 changed files with 3 additions and 1 deletions
|
@ -387,7 +387,9 @@ DEVICE *dptr;
|
||||||
UNIT *uptr;
|
UNIT *uptr;
|
||||||
t_stat r;
|
t_stat r;
|
||||||
|
|
||||||
if (ptr && (*ptr == '/')) { /* handle "BOOT /R5:n DEV" format */
|
if (ptr == NULL)
|
||||||
|
return SCPE_ARG;
|
||||||
|
if (*ptr == '/') { /* handle "BOOT /R5:n DEV" format */
|
||||||
ptr = get_glyph (ptr, rbuf, 0); /* get glyph */
|
ptr = get_glyph (ptr, rbuf, 0); /* get glyph */
|
||||||
regptr = rbuf;
|
regptr = rbuf;
|
||||||
ptr = get_glyph (ptr, gbuf, 0); /* get glyph */
|
ptr = get_glyph (ptr, gbuf, 0); /* get glyph */
|
||||||
|
|
Loading…
Add table
Reference in a new issue