VAX750: Fix NULL reference check in boot command parsing (COVERITY)

This commit is contained in:
Mark Pizzolato 2017-03-14 20:31:51 -07:00
parent 934f4e6471
commit 6a40afea24

View file

@ -633,6 +633,8 @@ DEVICE *dptr;
UNIT *uptr;
t_stat r;
if (!ptr || !*ptr)
return SCPE_2FARG;
if (ptr && (*ptr == '/')) { /* handle "BOOT /R5:n DEV" format */
ptr = get_glyph (ptr, rbuf, 0); /* get glyph */
regptr = rbuf;