From 8456681e68bc245c58ea7679cee004181e0fc94d Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Wed, 7 Jan 2015 02:00:25 -0800 Subject: [PATCH] Fix assertions inserting duplicate values into a splay ... loading ACLs with duplicate values is quite common. --- include/splay.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/splay.h b/include/splay.h index acf42709ea..bc2a3d30b9 100644 --- a/include/splay.h +++ b/include/splay.h @@ -299,7 +299,9 @@ template void Splay::insert(Value const &value, SPLAYCMP *compare) { - assert (find (value, compare) == NULL); + if (find(value, compare) != NULL) // ignore duplicates + return; + if (head == NULL) head = new SplayNode(value); else -- 2.47.3