summaryrefslogtreecommitdiff
path: root/src/arch/instruction.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/instruction.c')
-rw-r--r--src/arch/instruction.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/arch/instruction.c b/src/arch/instruction.c
index aa90e70..a45e8fa 100644
--- a/src/arch/instruction.c
+++ b/src/arch/instruction.c
@@ -284,6 +284,11 @@ void g_arch_instruction_get_rw_registers(const GArchInstruction *instr, GArchReg
{
size_t i; /* Boucle de parcours */
+ *rregs = NULL;
+ *rcount = 0;
+ *wregs = NULL;
+ *wcount = 0;
+
instr->get_rw_regs(instr, rregs, rcount, wregs, wcount);
for (i = 0; i < *rcount; i++)