table: Fixing a bug in Name Tree resize function

In the Name Tree resize() function, the pre pointer needs to be reset for each bucket.

Change-Id: I58526c5aaedc63f47aa64dbe285657b98b2a227c
diff --git a/daemon/table/name-tree.cpp b/daemon/table/name-tree.cpp
index 0820683..1d2e211 100644
--- a/daemon/table/name-tree.cpp
+++ b/daemon/table/name-tree.cpp
@@ -398,6 +398,7 @@
           BOOST_ASSERT(static_cast<bool>(p->m_entry));
           h = p->m_entry->m_hash;
           b = h % newNBuckets;
+          pre = 0;
           for (pp = &newBuckets[b]; *pp != 0; pp = &((*pp)->m_next))
             {
               pre = *pp;