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 10, 2024
1 parent d24f455 commit 45d7140
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 45d7140

Please sign in to comment.