Fix a nasty bug that was exposed by disabling the trace support by

default. There were 2 cases where the trace code was in the else-
part of an if-statement without any compound construct to protect
against nullification. The result was that 2 unconditional statements
turned into conditional statements and wrecked havoc.

This fix has been returned to the vendor and in anticipation of a
future import committed onto the vendor branch.
This commit is contained in:
Marcel Moolenaar 2003-07-12 04:20:56 +00:00
parent 2884f2dcd8
commit dca737bc61
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/vendor-sys/libuwx/dist/; revision=117465

View File

@ -232,9 +232,9 @@ int uwx_decode_rhdr(
if ((b0 & 0x20) == 0) {
TRACE_I_DECODE_RHDR_1("(R1) prologue", b0)
rhdr->is_prologue = 1;
}
else
} else {
TRACE_I_DECODE_RHDR_1("(R1) body", b0)
}
rhdr->rlen = b0 & 0x1f;
}
@ -263,9 +263,9 @@ int uwx_decode_rhdr(
if ((b0 & 0x03) == 0) {
TRACE_I_DECODE_RHDR_1L("(R3) prologue", b0, val)
rhdr->is_prologue = 1;
}
else
} else {
TRACE_I_DECODE_RHDR_1L("(R3) body", b0, val)
}
rhdr->rlen = (unsigned int) val;
}