diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-04-08 15:27:08 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-04-08 15:27:13 +0100 |
| commit | 785d9d9521fec575447c9530f0d6c6e8e54f3825 (patch) | |
| tree | 1498ec39ac9c1d6c4c36b65b31994c6b4986de88 /src/config/ConfigManager.cpp | |
| parent | 43b96f03b5af60586a864ea64e8c71b11ea6eb85 (diff) | |
config: verify string length in wrv2 before calling back
ref #5431
Diffstat (limited to 'src/config/ConfigManager.cpp')
| -rw-r--r-- | src/config/ConfigManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index f3fd9b7f..2eafc892 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -2084,7 +2084,7 @@ std::optional<std::string> CConfigManager::handleWindowRuleV2(const std::string& result = removeBeginEndSpacesTabs(result); - if (result.back() == ',') + if (!result.empty() && result.back() == ',') result.pop_back(); return result; |
