diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-07-21 10:15:02 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-07-22 09:13:07 +0200 |
commit | 059529e685e059d366ee56aa6117ee0d4e899e66 (patch) | |
tree | 77255d92003c98d84f558f6dbc27d474a842cf83 /cpukit/sapi/src/rbheap.c | |
parent | posix: Fix double chain extract (diff) | |
download | rtems-059529e685e059d366ee56aa6117ee0d4e899e66.tar.bz2 |
score: Add debug support to chains
This helps to detect
* double insert, append, prepend errors, and
* get from empty chain errors.
Diffstat (limited to 'cpukit/sapi/src/rbheap.c')
-rw-r--r-- | cpukit/sapi/src/rbheap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cpukit/sapi/src/rbheap.c b/cpukit/sapi/src/rbheap.c index 6fc2aef218..3a6983781e 100644 --- a/cpukit/sapi/src/rbheap.c +++ b/cpukit/sapi/src/rbheap.c @@ -76,6 +76,7 @@ static void add_to_chain( rtems_rbheap_chunk *chunk ) { + rtems_chain_initialize_node(&chunk->chain_node); rtems_chain_prepend_unprotected(chain, &chunk->chain_node); } |