]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1266] Initialize logger internal pointer only once
authorRazvan Becheriu <razvan@isc.org>
Tue, 2 Jun 2020 20:58:03 +0000 (23:58 +0300)
committerRazvan Becheriu <razvan@isc.org>
Tue, 2 Jun 2020 20:58:03 +0000 (23:58 +0300)
src/lib/log/logger.h

index 08f1f1748ab695c866f91157c7184bb7df4d02d2..3b86cb7fe5f6fae4cc038b8932e5e56680d290e3 100644 (file)
@@ -164,7 +164,7 @@ public:
     /// \note Note also that there is no constructor taking a std::string. This
     /// minimizes the possibility of initializing a static logger with a
     /// string, so leading to problems mentioned above.
-    Logger(const char* name) : loggerptr_(NULL) {
+    Logger(const char* name) : loggerptr_(NULL), initialized_(false) {
 
         // Validate the name of the logger.
         if (name == NULL) {