Explicitly initialize the base class of LogStream
[folly.git] / folly / experimental / logging / LogStream.cpp
index 947d76d7f2ba2c7e3ee0e212fa820d82a742ee64..3bf4acf677391329911bef91cd0bd6c18d12841e 100644 (file)
@@ -46,7 +46,7 @@ LogStreamBuffer::int_type LogStreamBuffer::overflow(int_type ch) {
   }
 }
 
   }
 }
 
-LogStream::LogStream() {
+LogStream::LogStream() : std::ostream(nullptr) {
   rdbuf(&buffer_);
 }
 
   rdbuf(&buffer_);
 }