summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/sntp/libevent/test/regress_minheap.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/sntp/libevent/test/regress_minheap.c')
-rw-r--r--contrib/ntp/sntp/libevent/test/regress_minheap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/ntp/sntp/libevent/test/regress_minheap.c b/contrib/ntp/sntp/libevent/test/regress_minheap.c
index 05db32e..24ff293 100644
--- a/contrib/ntp/sntp/libevent/test/regress_minheap.c
+++ b/contrib/ntp/sntp/libevent/test/regress_minheap.c
@@ -63,6 +63,7 @@ test_heap_randomized(void *ptr)
for (i = 0; i < 1024; ++i) {
inserted[i] = malloc(sizeof(struct event));
+ assert(inserted[i] != NULL);
set_random_timeout(inserted[i]);
min_heap_push_(&heap, inserted[i]);
}
OpenPOWER on IntegriCloud