projects
/
platform
/
upstream
/
at-spi2-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbc17ac
)
Add a NULL check into atspi_event_listener_register_from_callback
author
Mike Gorse
<mgorse@novell.com>
Fri, 28 Jan 2011 14:28:19 +0000
(08:28 -0600)
committer
Mike Gorse
<mgorse@novell.com>
Fri, 28 Jan 2011 14:29:26 +0000
(08:29 -0600)
atspi/atspi-event-listener.c
patch
|
blob
|
history
diff --git
a/atspi/atspi-event-listener.c
b/atspi/atspi-event-listener.c
index
0083c61
..
e931ba1
100644
(file)
--- a/
atspi/atspi-event-listener.c
+++ b/
atspi/atspi-event-listener.c
@@
-504,6
+504,12
@@
atspi_event_listener_register_from_callback (AtspiEventListenerCB callback,
return FALSE;
}
+ if (!event_type)
+ {
+ g_warning (_("called atspi_event_listener_register_from_callback with a NULL event_type"));
+ return FALSE;
+ }
+
e = g_new (EventListenerEntry, 1);
if (!e) return FALSE;
e->callback = callback;