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 | 3a2f92324ce8227a742ed2be0eca12251d4ceec9 (patch) | |
| tree | 304c799c8629359ed826305bafd36acdd9c6a74e /qpid/cpp/src/tests/test_store.cpp | |
| parent | 78799720865c42d6f81701602f4c94d25b97f3be (diff) | |
| download | qpid-python-3a2f92324ce8227a742ed2be0eca12251d4ceec9.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@764424 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/test_store.cpp')
| -rw-r--r-- | qpid/cpp/src/tests/test_store.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/test_store.cpp b/qpid/cpp/src/tests/test_store.cpp index da4f03192a..e5c3522852 100644 --- a/qpid/cpp/src/tests/test_store.cpp +++ b/qpid/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) |
