summaryrefslogtreecommitdiff
path: root/cpp/tests/TxAckTest.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-01-15 13:58:07 +0000
committerAlan Conway <aconway@apache.org>2007-01-15 13:58:07 +0000
commit722425e4d5db1e01f2d4ff2e46d03e1187da8407 (patch)
tree4b3ddc5b3ee880d2656f4ae986d0f573ba6b804e /cpp/tests/TxAckTest.cpp
parentfe6d706ad7085de5dd0526ec0c1d7983ed61aaf3 (diff)
downloadqpid-python-722425e4d5db1e01f2d4ff2e46d03e1187da8407.tar.gz
2006-12-08 Jim Meyering <meyering@redhat.com>
Ensure that AccumulatedAck.range is not used uninitialized. * lib/broker/AccumulatedAck.h (AccumulatedAck): Make this a class, rather than a struct. (AccumulatedAck::AccumulatedAck): Add a constructor to require initialization of the "range" member. * lib/broker/BrokerChannel.cpp (Channel) [accumulatedAck]: Initialize. * tests/TxAckTest.cpp (TxAckTest) [acked]: Likewise. * tests/AccumulatedAckTest.cpp (testCovers): Initialize local. (testUpdateAndConsolidate): Likewise. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@496317 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/tests/TxAckTest.cpp')
-rw-r--r--cpp/tests/TxAckTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/tests/TxAckTest.cpp b/cpp/tests/TxAckTest.cpp
index 0ffe984ded..7d5b8a838a 100644
--- a/cpp/tests/TxAckTest.cpp
+++ b/cpp/tests/TxAckTest.cpp
@@ -66,7 +66,7 @@ class TxAckTest : public CppUnit::TestCase
public:
- TxAckTest() : queue(new Queue("my_queue", false, &store, 0)), op(acked, deliveries, &xid)
+ TxAckTest() : acked(0), queue(new Queue("my_queue", false, &store, 0)), op(acked, deliveries, &xid)
{
for(int i = 0; i < 10; i++){
Message::shared_ptr msg(new Message(0, "exchange", "routing_key", false, false));