mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
REQUIRE isc_condition_waituntil args all non-NULL
This commit is contained in:
parent
b6f101e314
commit
c5f15d214f
@ -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…
x
Reference in New Issue
Block a user