diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2012-08-10 15:14:44 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2012-08-10 15:14:44 +0000 |
| commit | a4c9bc20238bf256b919c8ba5c32c8b056130041 (patch) | |
| tree | f8f21fb36cdd845f2c9a8f49ba71c4b76e1a36d6 /cpp/src | |
| parent | 5932eb9e7466475225a8678fd67edc2d8001fad6 (diff) | |
| download | qpid-python-a4c9bc20238bf256b919c8ba5c32c8b056130041.tar.gz | |
NO-JIRA: Avoid uninitialised variable warning
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1371735 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
| -rw-r--r-- | cpp/src/qpid/broker/IndexedDeque.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/broker/IndexedDeque.h b/cpp/src/qpid/broker/IndexedDeque.h index c64f321789..229b4e3009 100644 --- a/cpp/src/qpid/broker/IndexedDeque.h +++ b/cpp/src/qpid/broker/IndexedDeque.h @@ -131,7 +131,7 @@ template <typename T> class IndexedDeque T* next(QueueCursor& cursor) { - size_t i; + size_t i = 0; if (reset(cursor)) i = head; //start from head else index(cursor, i); //get first message that is greater than position @@ -166,7 +166,7 @@ template <typename T> class IndexedDeque T* find(const qpid::framing::SequenceNumber& position, QueueCursor* cursor) { - size_t i; + size_t i = 0; if (index(position, i)){ T& m = messages[i]; if (cursor) cursor->setPosition(position, version); |
