From 3caa4a0ee1464673d39052c51c7659fcdb9f80de Mon Sep 17 00:00:00 2001 From: Noel Berry Date: Thu, 27 Aug 2020 19:42:32 -0700 Subject: [PATCH] bufferstream didn't initialize m_buffer to nullptr --- public/blah/streams/bufferstream.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/blah/streams/bufferstream.cpp b/public/blah/streams/bufferstream.cpp index 40ba0f0..3990e66 100644 --- a/public/blah/streams/bufferstream.cpp +++ b/public/blah/streams/bufferstream.cpp @@ -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) {