fix compiler/Valgrind warning

pull/2/head
weidai 2010-06-18 07:08:05 +00:00
parent d60229a02a
commit a8b398e042
1 changed files with 2 additions and 1 deletions

View File

@ -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 &copy) ByteQueue::ByteQueue(const ByteQueue &copy)
: m_lazyString(NULL)
{ {
CopyFrom(copy); CopyFrom(copy);
} }