summaryrefslogtreecommitdiff
path: root/handler.c
diff options
context:
space:
mode:
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;
}