]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
mark getenv() NOLINT
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 8 May 2023 09:58:54 +0000 (11:58 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 8 May 2023 09:58:54 +0000 (11:58 +0200)
Locally (using clangd) no warning is reported...

pdns/recursordist/rec-main.cc

index 91fe7d4dd4a24db6fc3c2d2296cc797363b40ff5..f8708ec21aa63ef78824b898bffb6dd7c51f202d 100644 (file)
@@ -2784,7 +2784,7 @@ static void initArgs()
 #ifdef HAVE_SYSTEMD
                 + ". Set to the RUNTIME_DIRECTORY environment variable when that variable has a value (e.g. under systemd).")
     = "";
-  auto runtimeDir = getenv("RUNTIME_DIRECTORY");
+  auto* runtimeDir = getenv("RUNTIME_DIRECTORY"); // NOLINT(concurrency-mt-unsafe,cppcoreguidelines-pro-type-vararg)
   if (runtimeDir != nullptr) {
     ::arg().set("socket-dir") = runtimeDir;
   }