This commit is contained in:
Vaxry 2025-11-14 13:40:10 +00:00 committed by Mihai Fufezan
parent 419a24173b
commit 8133dc15e2
Signed by: fufexan
SSH key fingerprint: SHA256:SdnKmEpJrDu1+2UO1QpB/Eg4HKcdDi6n+xSRqFNJVpg

View file

@ -2838,7 +2838,7 @@ std::optional<std::string> CConfigManager::handleWindowrule(const std::string& c
for (const auto& el : data) {
// split on space, no need for a CVarList here
size_t spacePos = el.find(' ');
if (!spacePos)
if (spacePos == std::string::npos)
return std::format("invalid field {}: missing a value", el);
const bool FIRST_IS_PROP = el.starts_with("match:");