Memset the ringbuffer in m_fs_config by the size of the actual ringbuffer struct, not FsRingBufferConfig.

This commit is contained in:
Lioncash 2014-03-29 16:28:39 -04:00
parent 7804c56584
commit 12b627fa9c

View File

@ -33,12 +33,12 @@ struct FsRingBufferConfig
, m_alloc_mem_size(0)
, m_current_addr(0)
{
memset(&m_ring_buffer, 0, sizeof(FsRingBufferConfig));
memset(&m_ring_buffer, 0, sizeof(FsRingBuffer));
}
~FsRingBufferConfig()
{
memset(&m_ring_buffer, 0, sizeof(FsRingBufferConfig));
memset(&m_ring_buffer, 0, sizeof(FsRingBuffer));
}
} m_fs_config;