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 d9955c1 commit 57a7bca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handwritten/hexagon_il_c/functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,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 57a7bca

Please sign in to comment.