From 1a3f550b8dbf17e81492100b478a6fb7042b2421 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Wed, 26 Jun 2024 10:13:28 +0200 Subject: [PATCH] Fix coverity 1544951 copy_instead_of_move --- pdns/recursordist/settings/cxxsupport.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/recursordist/settings/cxxsupport.cc b/pdns/recursordist/settings/cxxsupport.cc index dd88d1f060..92373e6d8c 100644 --- a/pdns/recursordist/settings/cxxsupport.cc +++ b/pdns/recursordist/settings/cxxsupport.cc @@ -729,7 +729,7 @@ void fromLuaToRust(const LuaConfigItems& luaConfig, pdns::rust::settings::rec::D } } if (!dsRecords.empty()) { - pdns::rust::settings::rec::TrustAnchor trustAnchor{anchors.first.toString(), dsRecords}; + pdns::rust::settings::rec::TrustAnchor trustAnchor{anchors.first.toString(), std::move(dsRecords)}; dnssec.trustanchors.emplace_back(trustAnchor); } } -- 2.47.2