| Index: client/simple_string_dictionary_test.cc
|
| diff --git a/client/simple_string_dictionary_test.cc b/client/simple_string_dictionary_test.cc
|
| index 4619be742bf87bea84f8c24368c917707b045663..6396c2fe809c8b7da44f44c9705ddea1db12ffdb 100644
|
| --- a/client/simple_string_dictionary_test.cc
|
| +++ b/client/simple_string_dictionary_test.cc
|
| @@ -172,8 +172,10 @@ TEST(SimpleStringDictionary, Iterator) {
|
|
|
| int totalCount = 0;
|
|
|
| - const SimpleStringDictionary::Entry* entry;
|
| - while ((entry = iter.Next())) {
|
| + for (;;) {
|
| + const SimpleStringDictionary::Entry* entry = iter.Next();
|
| + if (!entry)
|
| + break;
|
| totalCount++;
|
|
|
| // Extract keyNumber from a string of the form key<keyNumber>
|
|
|