From aaaf9610db1a3cb0b01b86dc1a4f1e6b12f43126 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 8 Aug 2016 08:44:51 +0200 Subject: score: Add debug support to red-black trees This helps to detect double insert and extract errors. --- cpukit/score/src/watchdoginsert.c | 1 + 1 file changed, 1 insertion(+) (limited to 'cpukit/score/src/watchdoginsert.c') diff --git a/cpukit/score/src/watchdoginsert.c b/cpukit/score/src/watchdoginsert.c index 22fc7a5f76..b9f5eb88fb 100644 --- a/cpukit/score/src/watchdoginsert.c +++ b/cpukit/score/src/watchdoginsert.c @@ -60,6 +60,7 @@ void _Watchdog_Insert( } header->first = new_first; + _RBTree_Initialize_node( &the_watchdog->Node.RBTree ); _RBTree_Add_child( &the_watchdog->Node.RBTree, parent, link ); _RBTree_Insert_color( &header->Watchdogs, &the_watchdog->Node.RBTree ); } -- cgit v1.2.3