aboutsummaryrefslogtreecommitdiff
path: root/src/libutil
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-03-04 04:40:51 +0100
committereldritch horrors <pennae@lix.systems>2024-03-04 04:40:51 +0100
commit75fb95320541ab69d7c0996f4ee6b5081141a6d0 (patch)
treeeb6166607f784596a03a17c873fca7f52fde144e /src/libutil
parentd28a6618a886427aea26b2d356680eb569b7a036 (diff)
Merge pull request #9170 from tfc/fix-broken-move
Fix broken move (cherry picked from commit aa4f41d796630004e90790bffe2239420f77f696) Change-Id: I39d3f9f4f27328500de005c9205d905c55d6f9ea
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/config.cc1
1 files changed, 1 insertions, 0 deletions
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);
}