]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test_shared_cache::get_next: fix get_next call on uninitialized value
authorSamuel Just <sjust@redhat.com>
Thu, 15 Jan 2015 17:56:13 +0000 (09:56 -0800)
committerSamuel Just <sjust@redhat.com>
Thu, 15 Jan 2015 18:10:24 +0000 (10:10 -0800)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/test/common/test_shared_cache.cc

index 58853870834679432e9016cb080a54cb06fdd411..fb3a92064c32b9548a6a9ae81f4e88b8d10f6771 100644 (file)
@@ -286,7 +286,7 @@ TEST_F(SharedLRU_all, get_next) {
     const int value1 = *ptr1 = 800;
 
     pair<unsigned int, int> i;
-    EXPECT_TRUE(cache.get_next(i.first, &i));
+    EXPECT_TRUE(cache.get_next(0, &i));
     EXPECT_EQ(key1, i.first);
     EXPECT_EQ(value1, i.second);