projects
/
platform
/
core
/
uifw
/
at-spi2-atk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
76233f8
)
Collection: Fix an infinite loop when encountering a NULL parent
author
Mike Gorse
<mgorse@suse.com>
Thu, 20 Feb 2014 16:37:41 +0000
(10:37 -0600)
committer
Mike Gorse
<mgorse@suse.com>
Thu, 20 Feb 2014 16:37:41 +0000
(10:37 -0600)
atk-adaptor/adaptors/collection-adaptor.c
patch
|
blob
|
history
diff --git
a/atk-adaptor/adaptors/collection-adaptor.c
b/atk-adaptor/adaptors/collection-adaptor.c
index
11c73d8
..
af45afc
100644
(file)
--- 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);