Merge pull request #269 from datasift/master

patch for LIBZMQ-328
This commit is contained in:
Pieter Hintjens 2012-02-27 08:10:21 -08:00
commit 0fed3a3fca

View File

@ -186,6 +186,7 @@ bool zmq::trie_t::rm (unsigned char *prefix_, size_t size_)
// The pruned node is the left-most node ptr in the // The pruned node is the left-most node ptr in the
// node table => keep the right-most node // node table => keep the right-most node
node = next.table [count - 1]; node = next.table [count - 1];
min += count - 1;
} }
else if (c == min + count - 1) { else if (c == min + count - 1) {
// The pruned node is the right-most node ptr in the // The pruned node is the right-most node ptr in the