summaryrefslogtreecommitdiff
path: root/handler.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-07-15 21:12:34 +0200
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-07-15 21:12:34 +0200
commitf5645872db78ad274fc185c2e81fb9f89f6eab8a (patch)
treeeac5ef2dcab2eedbf2470b3438151985b3b3851d /handler.c
parentda4e79329f33efbde04d7791297c4a60b694640e (diff)
moved more streamer functions into streamer thread via message queue
Diffstat (limited to 'handler.c')
-rw-r--r--handler.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/handler.c b/handler.c
index acef8f77..830bda2c 100644
--- a/handler.c
+++ b/handler.c
@@ -86,6 +86,9 @@ handler_free (handler_t *h) {
int
handler_push (handler_t *h, uint32_t id, uintptr_t ctx, uint32_t p1, uint32_t p2) {
+ if (!h) {
+ return -1;
+ }
if (!h->mfree) {
return -1;
}