summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/objectgetbyindex.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/objectgetbyindex.c')
-rw-r--r--cpukit/score/src/objectgetbyindex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/score/src/objectgetbyindex.c b/cpukit/score/src/objectgetbyindex.c
index 6cfc2b98cd..7c7c89c2af 100644
--- a/cpukit/score/src/objectgetbyindex.c
+++ b/cpukit/score/src/objectgetbyindex.c
@@ -54,7 +54,8 @@ Objects_Control *_Objects_Get_by_index(
if ( information->maximum >= index ) {
_Thread_Disable_dispatch();
- if ( (the_object = _Objects_Get_local_object( information, index )) != NULL ) {
+ the_object = information->local_table[ index ];
+ if ( the_object ) {
*location = OBJECTS_LOCAL;
return( the_object );
}