Require nanoseconds is valid, instead of t->nanoseconds, which is what we're

getting ready to set.
This commit is contained in:
Michael Sawyer 2000-05-18 18:59:38 +00:00
parent aa863b2d1e
commit 232fd751ed

View file

@ -94,7 +94,7 @@ isc_time_set(isc_time_t *t, unsigned int seconds, unsigned int nanoseconds) {
* epoch.
*/
REQUIRE(t != NULL);
REQUIRE(t->nanoseconds < NS_PER_S);
REQUIRE(nanoseconds < NS_PER_S);
t->seconds = seconds;
t->nanoseconds = nanoseconds;