From 75fb95320541ab69d7c0996f4ee6b5081141a6d0 Mon Sep 17 00:00:00 2001 From: eldritch horrors Date: Mon, 4 Mar 2024 04:40:51 +0100 Subject: [PATCH] Merge pull request #9170 from tfc/fix-broken-move Fix broken move (cherry picked from commit aa4f41d796630004e90790bffe2239420f77f696) Change-Id: I39d3f9f4f27328500de005c9205d905c55d6f9ea --- src/libutil/config.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libutil/config.cc b/src/libutil/config.cc index 38d406e8a..8672edaa8 100644 --- a/src/libutil/config.cc +++ b/src/libutil/config.cc @@ -68,6 +68,7 @@ void AbstractConfig::warnUnknownSettings() void AbstractConfig::reapplyUnknownSettings() { auto unknownSettings2 = std::move(unknownSettings); + unknownSettings = {}; for (auto & s : unknownSettings2) set(s.first, s.second); }