[at-spi2-atk] Only query a relation set if it is non-NULL
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-atk] Only query a relation set if it is non-NULL
- Date: Tue, 16 Mar 2010 21:17:46 +0000 (UTC)
commit c0a05e32cc6569d245747d192352ce2be3b4cddd
Author: Mike Gorse <mgorse novell com>
Date: Fri Mar 5 14:56:13 2010 -0500
Only query a relation set if it is non-NULL
atk-adaptor/adaptors/accessible-adaptor.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/atk-adaptor/adaptors/accessible-adaptor.c b/atk-adaptor/adaptors/accessible-adaptor.c
index dc46850..818fca4 100644
--- a/atk-adaptor/adaptors/accessible-adaptor.c
+++ b/atk-adaptor/adaptors/accessible-adaptor.c
@@ -292,7 +292,9 @@ impl_GetRelationSet (DBusConnection * bus,
{
goto oom;
}
- count = atk_relation_set_get_n_relations (set);
+ count = 0;
+ if (set)
+ count = atk_relation_set_get_n_relations (set);
for (i = 0; i < count; i++)
{
AtkRelation *r = atk_relation_set_get_relation (set, i);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]