Commit b638c71d authored by Oleksii Mandrychenko's avatar Oleksii Mandrychenko

[#404] Reading past valid address with multisink logger

- Initialising atomic value

See examples at http://stackoverflow.com/q/36320008/706456
This issue was discovered with dr memory tool on Windows platform, Visual Studio 2015 C++ 11
parent 2b5c3615
...@@ -87,7 +87,7 @@ protected: ...@@ -87,7 +87,7 @@ protected:
spdlog::level_t _level; spdlog::level_t _level;
spdlog::level_t _flush_level; spdlog::level_t _flush_level;
log_err_handler _err_handler; log_err_handler _err_handler;
std::atomic<time_t> _last_err_time; std::atomic<time_t> _last_err_time {0}; // init atomic value to avoid reads of uninitialised memory
}; };
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment