From c5f15d214f2858db7d8a8b9831eaf0f3bf6edb80 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Tue, 11 Jan 2000 02:58:46 +0000 Subject: [PATCH] REQUIRE isc_condition_waituntil args all non-NULL --- lib/isc/pthreads/condition.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/isc/pthreads/condition.c b/lib/isc/pthreads/condition.c index 9d2142d469..179d2dfff9 100644 --- a/lib/isc/pthreads/condition.c +++ b/lib/isc/pthreads/condition.c @@ -20,6 +20,7 @@ #include #include +#include #include #include @@ -29,6 +30,8 @@ isc_condition_waituntil(isc_condition_t *c, isc_mutex_t *m, isc_time_t *t) int presult; struct timespec ts; + REQUIRE(c != NULL && m != NULL && t != NULL); + ts.tv_sec = t->seconds; ts.tv_nsec = t->nanoseconds; do {