mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-28 09:37:10 -04:00
REQUIRE isc_condition_waituntil args all non-NULL
This commit is contained in:
parent
b6f101e314
commit
c5f15d214f
1 changed files with 3 additions and 0 deletions
|
|
@ -20,6 +20,7 @@
|
|||
#include <errno.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <isc/assertions.h>
|
||||
#include <isc/condition.h>
|
||||
#include <isc/error.h>
|
||||
|
||||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue