[at-spi2-atk] Collection: Fix an infinite loop when encountering a NULL parent
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-atk] Collection: Fix an infinite loop when encountering a NULL parent
- Date: Thu, 20 Feb 2014 16:37:03 +0000 (UTC)
commit 0d5406c910195ab9869f055d6a5ae8efb333c8a2
Author: Mike Gorse <mgorse suse com>
Date: Thu Feb 20 10:37:41 2014 -0600
Collection: Fix an infinite loop when encountering a NULL parent
atk-adaptor/adaptors/collection-adaptor.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/atk-adaptor/adaptors/collection-adaptor.c b/atk-adaptor/adaptors/collection-adaptor.c
index 11c73d8..af45afc 100644
--- a/atk-adaptor/adaptors/collection-adaptor.c
+++ b/atk-adaptor/adaptors/collection-adaptor.c
@@ -830,7 +830,7 @@ inorder (AtkObject * collection, MatchRulePrivate * mrp,
NULL, TRUE, TRUE);
/* Next, we look through the right subtree */
- while ((max == 0 || kount < max) && obj != collection)
+ while ((max == 0 || kount < max) && obj && obj != collection)
{
AtkObject *parent = atk_object_get_parent (obj);
i = atk_object_get_index_in_parent (obj);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]