fix compiler/Valgrind warning
parent
d60229a02a
commit
a8b398e042
|
|
@ -129,7 +129,7 @@ public:
|
||||||
// ********************************************************
|
// ********************************************************
|
||||||
|
|
||||||
ByteQueue::ByteQueue(size_t nodeSize)
|
ByteQueue::ByteQueue(size_t nodeSize)
|
||||||
: m_lazyLength(0)
|
: m_lazyString(NULL), m_lazyLength(0)
|
||||||
{
|
{
|
||||||
SetNodeSize(nodeSize);
|
SetNodeSize(nodeSize);
|
||||||
m_head = m_tail = new ByteQueueNode(m_nodeSize);
|
m_head = m_tail = new ByteQueueNode(m_nodeSize);
|
||||||
|
|
@ -142,6 +142,7 @@ void ByteQueue::SetNodeSize(size_t nodeSize)
|
||||||
}
|
}
|
||||||
|
|
||||||
ByteQueue::ByteQueue(const ByteQueue ©)
|
ByteQueue::ByteQueue(const ByteQueue ©)
|
||||||
|
: m_lazyString(NULL)
|
||||||
{
|
{
|
||||||
CopyFrom(copy);
|
CopyFrom(copy);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue