From: Otto Moerbeek Date: Mon, 8 May 2023 09:58:54 +0000 (+0200) Subject: mark getenv() NOLINT X-Git-Tag: rec-4.9.0-beta1~19^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ba5af7d1da1c5af3d929e232486a02e3ce161f9d;p=thirdparty%2Fpdns.git mark getenv() NOLINT Locally (using clangd) no warning is reported... --- diff --git a/pdns/recursordist/rec-main.cc b/pdns/recursordist/rec-main.cc index 91fe7d4dd4..f8708ec21a 100644 --- a/pdns/recursordist/rec-main.cc +++ b/pdns/recursordist/rec-main.cc @@ -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; }