Fix missing variable name in ApiListener::Start
authorGunnar Beutner <gunnar.beutner@icinga.com>
Sun, 31 Dec 2017 18:12:33 +0000 (19:12 +0100)
committerMichael Friedrich <michael.friedrich@icinga.com>
Thu, 19 Apr 2018 10:44:57 +0000 (12:44 +0200)
fixes #5924
refs #5807

refs #5925

lib/remote/apilistener.cpp

index 65adce3becd3b5a0f7c1f8760a471c30efa975f0..cd625a407cff10f4ab2ea4bf06a896e3dd63bd65 100644 (file)
@@ -220,7 +220,7 @@ void ApiListener::Start(bool runtimeCreated)
        ObjectImpl<ApiListener>::Start(runtimeCreated);
 
        {
-               boost::mutex::scoped_lock(m_LogLock);
+               boost::mutex::scoped_lock lock(m_LogLock);
                RotateLogFile();
                OpenLogFile();
        }