diff --git a/include/utils/file.hpp b/include/utils/file.hpp index 2602c266..4318cf5b 100644 --- a/include/utils/file.hpp +++ b/include/utils/file.hpp @@ -81,7 +81,7 @@ class fd_stream : public StreamType { using type = fd_stream; template - explicit fd_stream(Args&&... args) : m_buf(forward(args)...) { + explicit fd_stream(Args&&... args) : StreamType(nullptr), m_buf(forward(args)...) { StreamType::rdbuf(&m_buf); }