mirror of
https://github.com/open-simh/simh.git
synced 2026-05-04 15:16:06 +00:00
VAX750: Fix NULL reference check in boot command parsing (COVERITY)
This commit is contained in:
@@ -633,6 +633,8 @@ DEVICE *dptr;
|
|||||||
UNIT *uptr;
|
UNIT *uptr;
|
||||||
t_stat r;
|
t_stat r;
|
||||||
|
|
||||||
|
if (!ptr || !*ptr)
|
||||||
|
return SCPE_2FARG;
|
||||||
if (ptr && (*ptr == '/')) { /* handle "BOOT /R5:n DEV" format */
|
if (ptr && (*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;
|
||||||
|
|||||||
Reference in New Issue
Block a user