Browse Source

[2726] Fix array index

Mukund Sivaraman 12 years ago
parent
commit
421e22c7f1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/datasrc/memory/domaintree.h

+ 1 - 1
src/lib/datasrc/memory/domaintree.h

@@ -709,7 +709,7 @@ public:
         // To silence cppcheck. We don't really use the values before
         // initialization, but this is cleaner anyway.
         for (size_t i = 0; i < RBT_MAX_LEVEL; ++i) {
-            nodes_[0] = NULL;
+            nodes_[i] = NULL;
         }
     }