Skip to content

Commit

Permalink
analysis_arm_cs.c: Fix -Wmaybe-uninitialized warning in optimized cap…
Browse files Browse the repository at this point in the history
…stone-v3 build
  • Loading branch information
kazarmy committed Mar 9, 2021
1 parent 2d3ecfc commit 1d3b29b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions librz/analysis/p/analysis_arm_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -3737,8 +3737,8 @@ static void op_fillval(RzAnalysis *analysis, RzAnalysisOp *op, csh handle, cs_in
case RZ_ANALYSIS_OP_TYPE_ROR:
case RZ_ANALYSIS_OP_TYPE_ROL:
case RZ_ANALYSIS_OP_TYPE_CAST:
#if CS_API_MAJOR > 3
for (i = 1; i < count; i++) {
#if CS_API_MAJOR > 3
if (bits == 64) {
cs_arm64_op arm64op = INSOP64(i);
if (arm64op.access == CS_AC_WRITE) {
Expand All @@ -3751,9 +3751,9 @@ static void op_fillval(RzAnalysis *analysis, RzAnalysisOp *op, csh handle, cs_in
continue;
}
}
#endif
break;
}
#endif
for (j = 0; j < 3; j++, i++) {
set_src_dst(op->src[j], analysis->reg, &handle, insn, i, bits);
}
Expand Down

0 comments on commit 1d3b29b

Please sign in to comment.