From: Razvan Becheriu Date: Tue, 2 Jun 2020 20:58:03 +0000 (+0300) Subject: [#1266] Initialize logger internal pointer only once X-Git-Tag: Kea-1.7.9~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6faf4a36611f416b764fdda9caaf15fe29d8fd02;p=thirdparty%2Fkea.git [#1266] Initialize logger internal pointer only once --- diff --git a/src/lib/log/logger.h b/src/lib/log/logger.h index 08f1f1748a..3b86cb7fe5 100644 --- a/src/lib/log/logger.h +++ b/src/lib/log/logger.h @@ -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) {