1
0
Fork 0

Initialize imm variable

This is a small issue pointed out by Coverity; this variable might be
later used uninitialized in several places.

Making this change to test if Coverity updates report summary only after
the numbers actually changed (we just had fresh scan, but Coverity keeps
showing summary from few days ago).
This commit is contained in:
Patryk Obara 2020-02-10 03:21:48 +01:00
parent 5c8b1edeb0
commit 7677511aa3

View file

@ -1067,9 +1067,8 @@ static INLINE void dyn_get_modrm(void) {
static void dyn_fill_ea(bool addseg=true, DynReg * reg_ea=DREG(EA)) {
DynReg * segbase;
if (!decode.big_addr) {
Bits imm;
Bits imm = 0;
switch (decode.modrm.mod) {
case 0:imm=0;break;
case 1:imm=(Bit8s)decode_fetchb();break;
case 2:imm=(Bit16s)decode_fetchw();break;
}