summaryrefslogtreecommitdiffstats
path: root/src/mon/ConfigMap.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mon/ConfigMap.cc')
-rw-r--r--src/mon/ConfigMap.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mon/ConfigMap.cc b/src/mon/ConfigMap.cc
index 86528c1dedf..1444103f460 100644
--- a/src/mon/ConfigMap.cc
+++ b/src/mon/ConfigMap.cc
@@ -266,7 +266,7 @@ int ConfigMap::add_option(
ldout(cct, 10) << __func__ << " unrecognized option '" << name << "'" << dendl;
stray_options.push_back(
std::unique_ptr<Option>(
- new Option(name, Option::TYPE_STR, Option::LEVEL_UNKNOWN)));
+ new Option(std::string{name}, Option::TYPE_STR, Option::LEVEL_UNKNOWN)));
opt = stray_options.back().get();
}