summaryrefslogtreecommitdiff
path: root/src/glibext
diff options
context:
space:
mode:
Diffstat (limited to 'src/glibext')
-rw-r--r--src/glibext/gbinportion.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glibext/gbinportion.c b/src/glibext/gbinportion.c
index bd4702b..920fcfe 100644
--- a/src/glibext/gbinportion.c
+++ b/src/glibext/gbinportion.c
@@ -578,7 +578,7 @@ GBinPortion *g_binary_portion_find_at_addr(GBinPortion *portion, const vmpa2t *a
result = NULL;
- for (i = 0; i < portion->sub_count && !result; i++)
+ for (i = 0; i < portion->sub_count && result == NULL; i++)
{
sub = portion->sub_portions[i];