]> 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>
Thu, 6 Nov 2025 08:09:29 +0000 (09:09 +0100)
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
(cherry picked from commit d9f454a3f3d918ecc9248aface3bacad2e32f71b)
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
pdns/misc.cc

index f74809490c30772700c7090733a6b348e8d5b05a..166d7eb336d7193d2c86f725a1bfe23c129f5628 100644 (file)
@@ -943,7 +943,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