summaryrefslogtreecommitdiff
path: root/lib/splay.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/splay.c')
-rw-r--r--lib/splay.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/splay.c b/lib/splay.c
index 609b799bf..3ca8678b2 100644
--- a/lib/splay.c
+++ b/lib/splay.c
@@ -223,6 +223,7 @@ int Curl_splayremove(struct Curl_tree *t,
if(compare(SPLAY_SUBNODE, removenode->key) == 0) {
/* It is a subnode within a 'same' linked list and thus we can unlink it
easily. */
+ DEBUGASSERT(removenode->samen != removenode);
if(removenode->samen == removenode)
/* A non-subnode should never be set to SPLAY_SUBNODE */
return 3;