Fix dead nested assignment librz/asm/p/asm_x86_nz.c

This commit is contained in:
Alexis Ehret 2021-01-28 21:52:33 +01:00 committed by Riccardo Schirone
parent 1fe63a1516
commit 60a176c9ae

View file

@ -5034,7 +5034,6 @@ static int parseOperand(RzAsm *a, const char *str, Operand *op, bool isrepop) {
}
} else if (last_type == TT_WORD) { // register
nextpos = pos;
RzFlagItem *flag;
if (isrepop) {
op->is_good_flag = false;
@ -5061,7 +5060,7 @@ static int parseOperand(RzAsm *a, const char *str, Operand *op, bool isrepop) {
}
op->type = OT_CONSTANT;
RzCore *core = a->num ? (RzCore *)(a->num->userptr) : NULL;
if (core && (flag = rz_flag_get(core->flags, str))) {
if (core && rz_flag_get(core->flags, str)) {
op->is_good_flag = true;
}