summaryrefslogtreecommitdiff
path: root/src/analysis/blocks
diff options
context:
space:
mode:
Diffstat (limited to 'src/analysis/blocks')
-rw-r--r--src/analysis/blocks/virtual.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/analysis/blocks/virtual.c b/src/analysis/blocks/virtual.c
index 71a6d06..2385f67 100644
--- a/src/analysis/blocks/virtual.c
+++ b/src/analysis/blocks/virtual.c
@@ -230,7 +230,8 @@ static GInstrBlock *g_virtual_block_find_by_addr(const GVirtualBlock *block, vmp
result = NULL;
for (i = 0; i < block->children_count && result == NULL; i++)
- result = g_instr_block_find_by_addr(block->children[i], addr);
+ if (g_instr_block_find_by_addr(block->children[i], addr))
+ result = block->children[i];
return result;