]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Regex: Appease clang-tidy
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 24 Oct 2025 14:55:01 +0000 (16:55 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 24 Oct 2025 14:55:01 +0000 (16:55 +0200)
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
pdns/misc.cc

index a280a91934f28b53b7e096fc0a36e4b48bf54f64..6a8b607b089400150725a95e5139335d6c061474 100644 (file)
@@ -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