diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-11-06 14:28:15 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-11-06 14:28:15 +0000 |
| commit | b4c45aa2e3af0e595a6276986290c78d11465746 (patch) | |
| tree | 133ad7e1c7fdd655a8f58fc48e232a4c922edaa2 /src/config/ConfigManager.cpp | |
| parent | 5295244026f95e1d343f0f42be33b70d4c56dc7c (diff) | |
fix compiler warning
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 e64fc86b..303ba340 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -1071,7 +1071,7 @@ void CConfigManager::parseLine(std::string& line) { } size_t startPos = 0; - while (startPos < line.length() - 1 && (startPos = line.find("##", startPos)) != std::string::npos) { + while ((startPos = line.find("##", startPos)) != std::string::npos && startPos < line.length() - 1 && startPos > 0) { line.replace(startPos, 2, "#"); startPos++; } |
