From 036e3bb933fc437ddc3de46dfb86492bd94cedae Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sun, 8 Mar 2020 18:44:33 -0700 Subject: [PATCH] SCP: Fix Coverity generated warnings --- scp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scp.c b/scp.c index 9e171902..e1c36b58 100644 --- a/scp.c +++ b/scp.c @@ -2811,7 +2811,7 @@ t_stat process_stdin_commands (t_stat stat, char *argv[], t_bool do_called) char cbuf[4*CBUFSIZE], gbuf[CBUFSIZE]; CONST char *cptr; t_stat stat_nomessage; -CTAB *cmdp; +CTAB *cmdp = NULL; stat = SCPE_BARE_STATUS(stat); /* remove possible flag */ while (stat != SCPE_EXIT) { /* in case exit */ @@ -15171,7 +15171,7 @@ for (i = 0; (dptr = sim_devices[i]) != NULL; i++) { if (rptr->flags & REG_UNIT) { if (udptr == NULL) { Bad = TRUE; - Mprintf (f, "\tthe indicated UNIT can't be found for this $u depth array\n", rptr->depth); + Mprintf (f, "\tthe indicated UNIT can't be found for this %u depth array\n", rptr->depth); } else { if (rptr->depth > udptr->numunits) {