mirror of
https://github.com/simh/simh.git
synced 2026-01-14 07:39:29 +00:00
SCP: Fix potential null pointer dereference in debug expression
This commit is contained in:
parent
7cd9b89546
commit
d39864669a
2
scp.c
2
scp.c
@ -3444,7 +3444,7 @@ do {
|
||||
}
|
||||
else
|
||||
stat = SCPE_UNK; /* bad cmd given */
|
||||
sim_debug (SIM_DBG_DO, sim_dflt_dev, "Command '%s', Result: 0x%X - %s\n", cmdp->name, stat, sim_error_text (stat));
|
||||
sim_debug (SIM_DBG_DO, sim_dflt_dev, "Command '%s', Result: 0x%X - %s\n", cmdp ? cmdp->name : "", stat, sim_error_text (stat));
|
||||
echo = sim_do_echo; /* Allow for SET VERIFY */
|
||||
stat_nomessage = stat & SCPE_NOMESSAGE; /* extract possible message supression flag */
|
||||
stat_nomessage = stat_nomessage || (!sim_show_message);/* Apply global suppression */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user