From 7815fd1b7e29fa510ee463997d734ec63200ab81 Mon Sep 17 00:00:00 2001 From: weidai Date: Fri, 18 Jun 2010 07:08:05 +0000 Subject: [PATCH] fix compiler/Valgrind warning --- trunk/c5/queue.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trunk/c5/queue.cpp b/trunk/c5/queue.cpp index ae05a783..ff2f0d31 100644 --- a/trunk/c5/queue.cpp +++ b/trunk/c5/queue.cpp @@ -129,7 +129,7 @@ public: // ******************************************************** ByteQueue::ByteQueue(size_t nodeSize) - : m_lazyLength(0) + : m_lazyString(NULL), m_lazyLength(0) { SetNodeSize(nodeSize); m_head = m_tail = new ByteQueueNode(m_nodeSize); @@ -142,6 +142,7 @@ void ByteQueue::SetNodeSize(size_t nodeSize) } ByteQueue::ByteQueue(const ByteQueue ©) + : m_lazyString(NULL) { CopyFrom(copy); }