summaryrefslogtreecommitdiff
path: root/src/config/ConfigManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/ConfigManager.cpp')
-rw-r--r--src/config/ConfigManager.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp
index 66c22318..fdb227c3 100644
--- a/src/config/ConfigManager.cpp
+++ b/src/config/ConfigManager.cpp
@@ -1333,13 +1333,10 @@ SConfigValue CConfigManager::getConfigValueSafe(const std::string& val) {
SConfigValue CConfigManager::getConfigValueSafeDevice(const std::string& dev, const std::string& val) {
std::lock_guard<std::mutex> lg(configmtx);
- auto devcopy = dev;
- std::replace(devcopy.begin(), devcopy.end(), ' ', '-');
-
- const auto it = deviceConfigs.find(devcopy);
+ const auto it = deviceConfigs.find(dev);
if (it == deviceConfigs.end()) {
- Debug::log(ERR, "getConfigValueSafeDevice: No device config for %s found???", devcopy.c_str());
+ Debug::log(ERR, "getConfigValueSafeDevice: No device config for %s found???", dev.c_str());
return SConfigValue();
}