Skip to content

Commit

Permalink
Remove check for legal NULL condition and handle it.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed May 6, 2024
1 parent 8df643b commit 46091d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions librz/arch/isa/hexagon/hexagon_il.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@ RZ_IPI bool hex_shuffle_insns(RZ_INOUT HexPkt *p) {
}

static RzILOpEffect *hex_il_op_to_effect(const HexILOp *il_op, HexPkt *pkt) {
rz_return_val_if_fail(il_op && il_op->get_il_op, NULL);
rz_return_val_if_fail(il_op, NULL);
HexInsnPktBundle bundle = { 0 };
bundle.insn = (HexInsn *)il_op->hi;
bundle.pkt = pkt;
return il_op->get_il_op(&bundle);
return il_op->get_il_op ? il_op->get_il_op(&bundle) : EMPTY();
}

/**
Expand Down

0 comments on commit 46091d4

Please sign in to comment.