diff --git a/include/spdlog/common.h b/include/spdlog/common.h index 40bac3e6..7987b085 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -308,6 +308,7 @@ struct file_event_handlers std::function after_open; std::function before_close; std::function after_close; + file_event_handlers() : before_open{nullptr}, after_open{nullptr}, before_close{nullptr}, after_close{nullptr} {} }; namespace details {