summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/rtemsobjectsetname.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/rtems/src/rtemsobjectsetname.c')
-rw-r--r--cpukit/rtems/src/rtemsobjectsetname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/rtems/src/rtemsobjectsetname.c b/cpukit/rtems/src/rtemsobjectsetname.c
index 7e35225189..6db87ac8ac 100644
--- a/cpukit/rtems/src/rtemsobjectsetname.c
+++ b/cpukit/rtems/src/rtemsobjectsetname.c
@@ -43,7 +43,7 @@ rtems_status_code rtems_object_set_name(
if ( !name )
return RTEMS_INVALID_ADDRESS;
- tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
+ tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Get_executing()->Object.id : id;
information = _Objects_Get_information_id( tmpId );
if ( !information )