From: Remi Gacogne Date: Tue, 9 Jan 2024 09:15:37 +0000 (+0100) Subject: rec: Fix a clang-tidy warning in test-mtasker.cc X-Git-Tag: auth-4.9.0-alpha1~7^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F13680%2Fhead;p=thirdparty%2Fpdns.git rec: Fix a clang-tidy warning in test-mtasker.cc --- diff --git a/pdns/recursordist/test-mtasker.cc b/pdns/recursordist/test-mtasker.cc index 435f28d1ba..a4adc08aa7 100644 --- a/pdns/recursordist/test-mtasker.cc +++ b/pdns/recursordist/test-mtasker.cc @@ -32,8 +32,9 @@ BOOST_AUTO_TEST_CASE(test_Simple) bool first = true; int o = 24; for (;;) { - while (mt.schedule(now)) - ; + while (mt.schedule(now)) { + } + if (first) { mt.sendEvent(12, &o); first = false;