From: Mark Andrews Date: Thu, 30 Jan 2020 07:56:03 +0000 (+1100) Subject: delay assignment until after REQUIRE X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbe83c3b2a0a02e915bba8fb678659c286d592a3;p=thirdparty%2Fbind9.git delay assignment until after REQUIRE --- diff --git a/lib/isc/timer.c b/lib/isc/timer.c index fce37e02a5b..2d675f37123 100644 --- a/lib/isc/timer.c +++ b/lib/isc/timer.c @@ -666,8 +666,8 @@ static void set_index(void *what, unsigned int index) { isc__timer_t *timer; + REQUIRE(VALID_TIMER(what)); timer = what; - REQUIRE(VALID_TIMER(timer)); timer->index = index; }