diff options
Diffstat (limited to 'src/libutil/config.cc')
-rw-r--r-- | src/libutil/config.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/config.cc b/src/libutil/config.cc index 2535b410f..8e76d6d66 100644 --- a/src/libutil/config.cc +++ b/src/libutil/config.cc @@ -18,7 +18,7 @@ bool Config::set(const std::string & name, const std::string & value) bool append = false; auto i = _settings.find(name); if (i == _settings.end()) { - if (hasPrefix(name, "extra-")) { + if (name.starts_with("extra-")) { i = _settings.find(std::string(name, 6)); if (i == _settings.end() || !i->second.setting->isAppendable()) return false; |