summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/processor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/processor.c b/src/arch/processor.c
index ba46e73..3a049b1 100644
--- a/src/arch/processor.c
+++ b/src/arch/processor.c
@@ -485,9 +485,9 @@ GArchInstruction *g_arch_processor_get_instruction(const GArchProcessor *proc, s
assert(index < proc->instr_count);
result = proc->instructions[index];
+ assert(result != NULL);
- if (result != NULL)
- g_object_ref(G_OBJECT(result));
+ g_object_ref(G_OBJECT(result));
}