bufferstream didn't initialize m_buffer to nullptr

This commit is contained in:
Noel Berry 2020-08-27 19:42:32 -07:00
parent 5a6d2c3de7
commit 3caa4a0ee1

View File

@ -4,10 +4,10 @@
using namespace Blah; using namespace Blah;
BufferStream::BufferStream() BufferStream::BufferStream()
: m_capacity(0), m_length(0), m_position(0) {} : m_buffer(nullptr), m_capacity(0), m_length(0), m_position(0) {}
BufferStream::BufferStream(int capacity) BufferStream::BufferStream(int capacity)
: m_capacity(0), m_length(0), m_position(0) : m_buffer(nullptr), m_capacity(0), m_length(0), m_position(0)
{ {
if (capacity > 0) if (capacity > 0)
{ {