summaryrefslogtreecommitdiff
path: root/src/Listen.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-19 17:40:56 +0200
committerMax Kellermann <max@duempel.org>2013-10-19 17:40:56 +0200
commit3274bb54ad673cfd9d9ab6d6d86e5cebaadf89f2 (patch)
treeaa20f6db3c400e2bc6b185cd1be92c6cee15780d /src/Listen.cxx
parent7db124068f60f8f8208c9f5601407202381e2ecb (diff)
event/ServerSocket: pass AllocatedPath to AddPath()
Diffstat (limited to 'src/Listen.cxx')
-rw-r--r--src/Listen.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Listen.cxx b/src/Listen.cxx
index 1365cae3f..a953c80b4 100644
--- a/src/Listen.cxx
+++ b/src/Listen.cxx
@@ -67,8 +67,9 @@ listen_add_config_param(unsigned int port,
if (0 == strcmp(param->value.c_str(), "any")) {
return listen_socket->AddPort(port, error_r);
} else if (param->value[0] == '/' || param->value[0] == '~') {
- const auto path = config_parse_path(param, error_r);
- return !path.IsNull() && listen_socket->AddPath(path.c_str(), error_r);
+ auto path = config_parse_path(param, error_r);
+ return !path.IsNull() &&
+ listen_socket->AddPath(std::move(path), error_r);
} else {
return listen_socket->AddHost(param->value.c_str(), port,
error_r);