diff --git a/lib/base/configwriter.cpp b/lib/base/configwriter.cpp index cc58ecdee..1f4eecd88 100644 --- a/lib/base/configwriter.cpp +++ b/lib/base/configwriter.cpp @@ -212,6 +212,8 @@ String ConfigWriter::EscapeIcingaString(const String& str) const std::vector& ConfigWriter::GetKeywords(void) { static std::vector keywords; + static boost::mutex mutex; + boost::mutex::scoped_lock lock(mutex); if (keywords.empty()) { keywords.push_back("object");