diff --git a/include/c11log/details/file_helper.h b/include/c11log/details/file_helper.h index 692fc91a..0d5617f5 100644 --- a/include/c11log/details/file_helper.h +++ b/include/c11log/details/file_helper.h @@ -62,6 +62,7 @@ public: void close() { std::fclose(_fd); + _fd = nullptr; } void write(const log_msg& msg)