diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-08-08 08:44:51 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-08-08 09:34:29 +0200 |
commit | aaaf9610db1a3cb0b01b86dc1a4f1e6b12f43126 (patch) | |
tree | c9ba25cf3c9eda0866a762c1f408783e3528fd06 /cpukit/posix | |
parent | posix: Fix for RTEMS_DEBUG (diff) | |
download | rtems-aaaf9610db1a3cb0b01b86dc1a4f1e6b12f43126.tar.bz2 |
score: Add debug support to red-black trees
This helps to detect double insert and extract errors.
Diffstat (limited to 'cpukit/posix')
-rw-r--r-- | cpukit/posix/src/keysetspecific.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/posix/src/keysetspecific.c b/cpukit/posix/src/keysetspecific.c index 7ccef1fdb9..391dc85b2d 100644 --- a/cpukit/posix/src/keysetspecific.c +++ b/cpukit/posix/src/keysetspecific.c @@ -57,6 +57,8 @@ static int _POSIX_Keys_Create_value( key_value_pair->thread = executing; key_value_pair->value = RTEMS_DECONST( void *, value ); + _RBTree_Initialize_node( &key_value_pair->Lookup_node ); + _Chain_Initialize_node( &key_value_pair->Key_node ); _Chain_Append_unprotected( &the_key->Key_value_pairs, |