summaryrefslogtreecommitdiff
path: root/queue.cpp
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2010-06-18 07:08:05 +0000
committerweidai <weidai11@users.noreply.github.com>2010-06-18 07:08:05 +0000
commita8b398e042a93087667df476c115d1620760b03e (patch)
tree809db33fb65677bb9c8524d5c5edc72dccb93557 /queue.cpp
parentd60229a02a18a285b1e25e45c0623b290207cf4c (diff)
downloadcryptopp-git-a8b398e042a93087667df476c115d1620760b03e.tar.gz
fix compiler/Valgrind warning
Diffstat (limited to 'queue.cpp')
-rw-r--r--queue.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/queue.cpp b/queue.cpp
index ae05a783..ff2f0d31 100644
--- a/queue.cpp
+++ b/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 &copy)
+ : m_lazyString(NULL)
{
CopyFrom(copy);
}