diff options
| author | Kim van der Riet <kpvdr@apache.org> | 2009-04-13 12:04:16 +0000 |
|---|---|---|
| committer | Kim van der Riet <kpvdr@apache.org> | 2009-04-13 12:04:16 +0000 |
| commit | 9248d2b88fe09eb5b906f766b5350f9ca9ac394b (patch) | |
| tree | 30f505ec9220986580425a1f68aafda0b45ac959 /cpp/src/tests/test_store.cpp | |
| parent | 769416f61343b6458529f023164b6ebb837eec3c (diff) | |
| download | qpid-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
Diffstat (limited to 'cpp/src/tests/test_store.cpp')
| -rw-r--r-- | cpp/src/tests/test_store.cpp | 3 |
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) |
