Skip to content
Permalink
Browse files

Initialize buffer to zero to avoid uninitialized warnings.

  • Loading branch information...
Ignacio Jaureguiberry
Ignacio Jaureguiberry committed Oct 18, 2017
1 parent dacdf5a commit dbcfbba688bd6c91241ec492beb2e0a7acbff81c
Showing with 1 addition and 0 deletions.
  1. +1 −0 cpp/src/platform/Stream.cpp
@@ -51,6 +51,7 @@ Stream::Stream
m_mutex( new Mutex() )
{
m_buffer = new uint8[m_bufferSize];
memset(m_buffer, 0x00, m_bufferSize);
}

//-----------------------------------------------------------------------------

0 comments on commit dbcfbba

Please sign in to comment.
You can’t perform that action at this time.