summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
Diffstat (limited to 'service')
-rw-r--r--service/OneService.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/service/OneService.cpp b/service/OneService.cpp
index 5f2adfe3..a9185eea 100644
--- a/service/OneService.cpp
+++ b/service/OneService.cpp
@@ -1530,7 +1530,8 @@ public:
json &controllerDbHttpPath = settings["controllerDbHttpPath"];
if ((controllerDbHttpHost.is_string())&&(controllerDbHttpPort.is_number())) {
_controllerDbPath = "http://";
- _controllerDbPath.append(controllerDbHttpHost);
+ std::string h = controllerDbHttpHost;
+ _controllerDbPath.append(h);
char dbp[128];
Utils::snprintf(dbp,sizeof(dbp),"%d",(int)controllerDbHttpPort);
_controllerDbPath.push_back(':');