summaryrefslogtreecommitdiffhomepage
path: root/listener.c
diff options
context:
space:
mode:
Diffstat (limited to 'listener.c')
-rw-r--r--listener.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/listener.c b/listener.c
index 9cccefc..4c60589 100644
--- a/listener.c
+++ b/listener.c
@@ -139,7 +139,7 @@ struct Listener * get_listener(int type, const void* typedata,
struct Listener* listener;
for (i = 0, listener = ses.listeners[i]; i < ses.listensize; i++) {
- if (listener->type == type
+ if (listener && listener->type == type
&& match(typedata, listener->typedata)) {
return listener;
}