From 57a7bca007d1a4c706d5fb4081edcbadb81e21a0 Mon Sep 17 00:00:00 2001 From: Rot127 Date: Mon, 6 May 2024 08:05:45 -0500 Subject: [PATCH] Remove check for legal NULL condition and handle it. --- handwritten/hexagon_il_c/functions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handwritten/hexagon_il_c/functions.c b/handwritten/hexagon_il_c/functions.c index c580f4cb..59ee6266 100644 --- a/handwritten/hexagon_il_c/functions.c +++ b/handwritten/hexagon_il_c/functions.c @@ -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(); } /**