summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-03-24 07:38:31 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-03-24 07:38:31 (GMT)
commitb7347c96930027fc11b9c5038157f972d58a41bf (patch)
tree182ddabae529e89b28db93acb3404cd7424086ed /src/arch
parent518ce6e1594ba80be4286bd3e561b0b7f73ce4b0 (diff)
Built routine digest for tooltip hints.
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));
}