mirror of
https://github.com/NoelFB/blah.git
synced 2025-06-29 19:25:26 +08:00
bufferstream didn't initialize m_buffer to nullptr
This commit is contained in:
@ -4,10 +4,10 @@
|
||||
using namespace Blah;
|
||||
|
||||
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)
|
||||
: m_capacity(0), m_length(0), m_position(0)
|
||||
: m_buffer(nullptr), m_capacity(0), m_length(0), m_position(0)
|
||||
{
|
||||
if (capacity > 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user