summaryrefslogtreecommitdiff
path: root/cpp/src/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/tests')
-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)