Fixed harmless uninit var warning
authorAndrey Tuganov <andreyt@google.com>
Wed, 31 Jan 2018 21:59:55 +0000 (16:59 -0500)
committerDavid Neto <dneto@google.com>
Wed, 31 Jan 2018 22:49:01 +0000 (17:49 -0500)
source/util/move_to_front.h

index 0cfd7c1..de405dd 100644 (file)
@@ -609,7 +609,7 @@ void MoveToFront<Val>::InsertNode(uint32_t node) {
 
   // Will determine if |node| will become the right or left child after
   // insertion (but before balancing).
-  bool right_child;
+  bool right_child = true;
 
   // Find the node which will become |node|'s parent after insertion
   // (but before balancing).