From 9248d2b88fe09eb5b906f766b5350f9ca9ac394b Mon Sep 17 00:00:00 2001 From: Kim van der Riet Date: Mon, 13 Apr 2009 12:04:16 +0000 Subject: 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 --- cpp/src/tests/test_store.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpp/src/tests/test_store.cpp') 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(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) -- cgit v1.2.1