summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim van der Riet <kpvdr@apache.org>2009-04-13 12:04:16 +0000
committerKim van der Riet <kpvdr@apache.org>2009-04-13 12:04:16 +0000
commit9248d2b88fe09eb5b906f766b5350f9ca9ac394b (patch)
tree30f505ec9220986580425a1f68aafda0b45ac959
parent769416f61343b6458529f023164b6ebb837eec3c (diff)
downloadqpid-python-9248d2b88fe09eb5b906f766b5350f9ca9ac394b.tar.gz
Trivial fix for gcc 4.3 compiler (F10) "may be used uninitialized" error
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@764424 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--cpp/src/tests/test_store.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/tests/test_store.cpp b/cpp/src/tests/test_store.cpp
index da4f03192a..e5c3522852 100644
--- a/cpp/src/tests/test_store.cpp
+++ b/cpp/src/tests/test_store.cpp
@@ -83,7 +83,8 @@ class TestStore : public NullMessageStore {
string data = polymorphic_downcast<Message*>(msg.get())->getFrames().getContent();
// Check the message for special instructions.
- size_t i, j;
+ size_t i = string::npos;
+ size_t j = string::npos;
if (starts_with(data, TEST_STORE_DO)
&& (i = data.find(name+"[")) != string::npos
&& (j = data.find("]", i)) != string::npos)