mirror of
https://github.com/hyprwm/hyprlang.git
synced 2025-12-20 03:50:02 +01:00
config/parser: fix invalid ptr after move
This commit is contained in:
parent
995db114b8
commit
771e915f59
1 changed files with 4 additions and 3 deletions
|
|
@ -793,9 +793,10 @@ CParseResult CConfig::parseLine(std::string line, bool dynamic) {
|
||||||
bool found = false;
|
bool found = false;
|
||||||
|
|
||||||
if (!impl->configOptions.verifyOnly) {
|
if (!impl->configOptions.verifyOnly) {
|
||||||
auto [f, rv] = configSetValueSafe(LHS, RHS);
|
auto [f, rv] = configSetValueSafe(LHS, RHS);
|
||||||
found = f;
|
found = f;
|
||||||
ret = std::move(rv);
|
ret = std::move(rv);
|
||||||
|
ret.errorString = ret.errorStdString.c_str();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!found) {
|
if (!found) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue