From: Otto Moerbeek Date: Mon, 17 Feb 2025 08:05:16 +0000 (+0100) Subject: Coverity 1591604 Use of auto that causes a copy X-Git-Tag: dnsdist-2.0.0-alpha1~82^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89a09828c9b297b4fd4294d9d99260a15e422b92;p=thirdparty%2Fpdns.git Coverity 1591604 Use of auto that causes a copy --- diff --git a/pdns/recursordist/ws-recursor.cc b/pdns/recursordist/ws-recursor.cc index 52cdf5c1bd..c48bf852b4 100644 --- a/pdns/recursordist/ws-recursor.cc +++ b/pdns/recursordist/ws-recursor.cc @@ -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; }