summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/iterateoverthreads.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2010-11-23 14:59:05 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2010-11-23 14:59:05 +0000
commit4e3d9b8a846f141621c4baa64707c895960b1154 (patch)
tree6c7862718be72f0e64d3885e97b09f12720adc40 /cpukit/score/src/iterateoverthreads.c
parent2010-11-22 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff)
downloadrtems-4e3d9b8a846f141621c4baa64707c895960b1154.tar.bz2
2010-11-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
* score/src/iterateoverthreads.c, libmisc/cpuuse/cpuusagereport.c: Fixed NULL pointer access in case POSIX API is disabled.
Diffstat (limited to 'cpukit/score/src/iterateoverthreads.c')
-rw-r--r--cpukit/score/src/iterateoverthreads.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/cpukit/score/src/iterateoverthreads.c b/cpukit/score/src/iterateoverthreads.c
index 0cd8679f8d..34683e6790 100644
--- a/cpukit/score/src/iterateoverthreads.c
+++ b/cpukit/score/src/iterateoverthreads.c
@@ -34,12 +34,10 @@ void rtems_iterate_over_all_threads(rtems_per_thread_routine routine)
for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
/*
- * Since the removal of ITRON, this cannot occur.
+ * Since POSIX is optional, this can occur.
*/
- #if defined(RTEMS_DEBUG)
- if ( !_Objects_Information_table[ api_index ] )
- continue;
- #endif
+ if ( !_Objects_Information_table[ api_index ] )
+ continue;
information = _Objects_Information_table[ api_index ][ 1 ];
if ( !information )