summaryrefslogtreecommitdiff
path: root/src/fdevent_freebsd_kqueue.c
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2016-01-30 13:59:07 +0000
committerStefan Bühler <stbuehler@web.de>2016-01-30 13:59:07 +0000
commit566cf8decbd63d921e914041d5d7940314ef2f1c (patch)
treeafbec8540185c46386fc4f2ccecf37ec5dcf0efd /src/fdevent_freebsd_kqueue.c
parentf3b577ddee36b9555331dfbcddb6a200df2ba438 (diff)
downloadlighttpd1.4-566cf8decbd63d921e914041d5d7940314ef2f1c.tar.gz
lighttpd1.4-566cf8decbd63d921e914041d5d7940314ef2f1c.zip
add force_assert for more allocation results
From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3072 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/fdevent_freebsd_kqueue.c')
-rw-r--r--src/fdevent_freebsd_kqueue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fdevent_freebsd_kqueue.c b/src/fdevent_freebsd_kqueue.c
index 3c207339..22845bec 100644
--- a/src/fdevent_freebsd_kqueue.c
+++ b/src/fdevent_freebsd_kqueue.c
@@ -199,6 +199,7 @@ int fdevent_freebsd_kqueue_init(fdevents *ev) {
ev->kq_fd = -1;
ev->kq_results = calloc(ev->maxfds, sizeof(*ev->kq_results));
+ force_assert(NULL != ev->kq_results);
/* check that kqueue works */