mirror of
https://github.com/NoelFB/blah.git
synced 2024-11-25 16:18:57 +08:00
bufferstream didn't initialize m_buffer to nullptr
This commit is contained in:
parent
5a6d2c3de7
commit
3caa4a0ee1
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user