summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/rbtreeinsert.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/rbtreeinsert.c')
-rw-r--r--cpukit/score/src/rbtreeinsert.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/score/src/rbtreeinsert.c b/cpukit/score/src/rbtreeinsert.c
index c8bbef9aad..99dc2a233f 100644
--- a/cpukit/score/src/rbtreeinsert.c
+++ b/cpukit/score/src/rbtreeinsert.c
@@ -19,5 +19,9 @@ void _RBTree_Insert_color(
RBTree_Node *the_node
)
{
+#if defined(RTEMS_DEBUG)
+ _Assert( the_node->tree == NULL );
+ the_node->tree = the_rbtree;
+#endif
RBTree_Control_RB_INSERT_COLOR( the_rbtree, the_node );
}