From d9f454a3f3d918ecc9248aface3bacad2e32f71b Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 24 Oct 2025 16:55:01 +0200 Subject: [PATCH] Regex: Appease clang-tidy Signed-off-by: Remi Gacogne --- pdns/misc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/misc.cc b/pdns/misc.cc index a280a91934..6a8b607b08 100644 --- a/pdns/misc.cc +++ b/pdns/misc.cc @@ -840,7 +840,7 @@ Regex::Regex(const string& expr): /** call this to find out if 'line' matches your expression */ bool Regex::match(const string &line) const { - return regexec(d_preg.get(), line.c_str(), 0, 0, 0) == 0; + return regexec(d_preg.get(), line.c_str(), 0, nullptr, 0) == 0; } bool Regex::match(const DNSName& name) const -- 2.47.3