1
0
mirror of https://github.com/simh/simh.git synced 2026-02-04 07:34:02 +00:00

SCP, DISK: Fix Coverity identified debug path null pointer dereferences

This commit is contained in:
Mark Pizzolato
2018-04-17 23:51:39 -07:00
parent 309598e2cd
commit 15e86fb4ed
2 changed files with 3 additions and 2 deletions

2
scp.c
View File

@@ -6659,6 +6659,8 @@ const char *sim_uname (UNIT *uptr)
DEVICE *d;
char uname[CBUFSIZE];
if (!uptr)
return "";
if (uptr->uname)
return uptr->uname;
d = find_dev_from_unit(uptr);