Browse Source

Fix warning from recent GCC.

Shane Kerr 14 years ago
parent
commit
047cdc39aa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/datasrc/tests/rbtree_unittest.cc

+ 1 - 1
src/lib/datasrc/tests/rbtree_unittest.cc

@@ -398,7 +398,7 @@ TEST_F(RBTreeTest, getLastComparedNode) {
     EXPECT_EQ(static_cast<void*>(NULL), chain.getLastComparedNode());
     chain.clear();
 
-    const RBNode<int>* expected_node;
+    const RBNode<int>* expected_node = NULL;
 
     // Exact match case.  The returned node should be last compared.
     EXPECT_EQ(RBTree<int>::EXACTMATCH,