From b9543529d246fcc3c708de243ea191f605084a77 Mon Sep 17 00:00:00 2001 From: Bob Supnik Date: Fri, 31 Mar 2017 15:02:34 -0700 Subject: [PATCH] All VAX: Fixed uninitialized variable on FPD path (COVERITY) --- VAX/vax_cpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/VAX/vax_cpu.c b/VAX/vax_cpu.c index 8b75ae8a..d6bf4823 100644 --- a/VAX/vax_cpu.c +++ b/VAX/vax_cpu.c @@ -25,6 +25,7 @@ cpu VAX central processor + 31-Mar-17 RMS Fixed uninitialized variable on FPD path (COVERITY) 13-Mar-17 RMS Fixed dangling else in show_opnd (COVERITY) 20-Sep-11 MP Fixed idle conditions for various versions of Ultrix, Quasijarus-4.3BSD, NetBSD and OpenBSD. @@ -713,9 +714,9 @@ for ( ;; ) { } numspec = drom[opc][0]; /* get # specs */ if (PSL & PSL_FPD) { - j = 0; if ((numspec & DR_F) == 0) RSVD_INST_FAULT; + j = 0; /* no operands */ } else { numspec = numspec & DR_NSPMASK; /* get # specifiers */