]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Coverity 1591604 Use of auto that causes a copy
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 17 Feb 2025 08:05:16 +0000 (09:05 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 17 Feb 2025 08:05:16 +0000 (09:05 +0100)
pdns/recursordist/ws-recursor.cc

index 52cdf5c1bda37abf0fca30aeb622c5715d1383c2..c48bf852b49d3ebe69295c716b017f02578508b2 100644 (file)
@@ -1020,7 +1020,7 @@ void serveRustWeb()
   auto logPtr = g_slog->withName("webserver");
 
   pdns::rust::misc::LogLevel loglevel = pdns::rust::misc::LogLevel::Normal;
-  auto configLevel = ::arg()["webserver-loglevel"];
+  const auto& configLevel = ::arg()["webserver-loglevel"];
   if (configLevel == "none") {
     loglevel = pdns::rust::misc::LogLevel::Normal;
   }