Skip to content

Commit efe5a6c

Browse files
committed
Fix uninitialize variable warning
1 parent 58e2bea commit efe5a6c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/library/hookpatch.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ static int instruction_length(const unsigned char *func, instr_info *instr)
8282
instr->operand_size_prefix = false;
8383
instr->quad_prefix = false;
8484
instr->multibyte_opcode = 0;
85+
instr->modRM = 0;
8586

8687
int operandSizeDouble = 4; // operand size for instructions that depend only on 16-bit prefix, and cannot be promoted by REX.W 64-bit
8788
int operandSize = 4; // operand size for instructions that depend on both operand-size prefixes

0 commit comments

Comments
 (0)