summaryrefslogtreecommitdiff
path: root/src/data_array.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/data_array.c
parentf3b577ddee36b9555331dfbcddb6a200df2ba438 (diff)
downloadlighttpd-git-566cf8decbd63d921e914041d5d7940314ef2f1c.tar.gz
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/data_array.c')
-rw-r--r--src/data_array.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/data_array.c b/src/data_array.c
index ad96207e..53249903 100644
--- a/src/data_array.c
+++ b/src/data_array.c
@@ -50,6 +50,7 @@ data_array *data_array_init(void) {
data_array *ds;
ds = calloc(1, sizeof(*ds));
+ force_assert(NULL != ds);
ds->key = buffer_init();
ds->value = array_init();