diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index a502423b..0fba7877 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -938,7 +938,7 @@ void CConfigManager::parseLine(std::string& line) { const auto LASTSEP = currentCategory.find_last_of(':'); - if (LASTSEP == std::string::npos) + if (LASTSEP == std::string::npos || currentCategory.contains("device:")) currentCategory = ""; else currentCategory = currentCategory.substr(0, LASTSEP);