config/parser: fix invalid ptr after move

This commit is contained in:
Vaxry 2025-11-12 13:51:28 +00:00
parent 995db114b8
commit 771e915f59
Signed by: vaxry
GPG key ID: 665806380871D640

View file

@ -793,9 +793,10 @@ CParseResult CConfig::parseLine(std::string line, bool dynamic) {
bool found = false;
if (!impl->configOptions.verifyOnly) {
auto [f, rv] = configSetValueSafe(LHS, RHS);
found = f;
ret = std::move(rv);
auto [f, rv] = configSetValueSafe(LHS, RHS);
found = f;
ret = std::move(rv);
ret.errorString = ret.errorStdString.c_str();
}
if (!found) {