[at-spi2-core/gnome-3-18] Fix reversed check for NULL child
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core/gnome-3-18] Fix reversed check for NULL child
- Date: Sat, 24 Oct 2015 23:41:57 +0000 (UTC)
commit 9851e03601cf15905898cc89d2ea856eaffaa993
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Fri Oct 23 03:40:13 2015 -0400
Fix reversed check for NULL child
The check for an unknown child path resulting in a NULL child
added in a614d447f was backwards.
https://bugzilla.gnome.org/show_bug.cgi?id=755951
atspi/atspi-event-listener.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/atspi/atspi-event-listener.c b/atspi/atspi-event-listener.c
index be7d3e9..386393a 100644
--- a/atspi/atspi-event-listener.c
+++ b/atspi/atspi-event-listener.c
@@ -207,7 +207,7 @@ cache_process_children_changed (AtspiEvent *event)
return;
child = g_value_get_object (&event->any_data);
- if (child)
+ if (child == NULL)
return;
if (!strncmp (event->type, "object:children-changed:add", 27))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]