]> git.ipfire.org Git - thirdparty/bind9.git/commit
Silence potential divide by zero warning in qpmulti.c
authorMark Andrews <marka@isc.org>
Fri, 30 May 2025 00:51:21 +0000 (10:51 +1000)
committerMark Andrews <marka@isc.org>
Mon, 2 Jun 2025 23:41:21 +0000 (23:41 +0000)
commit3b20e48658c25669bccf7d906bd3b3ef34362f96
treecd090e50365f7a5db46462914d17b7e1ad074670
parent469d6a31ab3a609168205e8d88a57ad4a6bd8fe9
Silence potential divide by zero warning in qpmulti.c

Coverity flagged a potential divide by zero error in collect in
qpmulti.c when the elapsed time is zero but that is only called
once the elapsed time is greater than or equal to RUNTIME (1/4
second) so INSIST this is the case.

(cherry picked from commit 081dbb110834dc76ae8978a6dd85097382c8e364)
tests/bench/qpmulti.c