mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 23:23:13 +00:00
2004-07-14 Joel Sherrill <joel@OARcorp.com>
PR 651/core * src/taskident.c: Add NULL check for id.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2004-07-14 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
|
PR 651/core
|
||||||
|
* src/taskident.c: Add NULL check for id.
|
||||||
|
|
||||||
2004-06-29 Joel Sherrill <joel@OARcorp.com>
|
2004-06-29 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
PR 631/rtems
|
PR 631/rtems
|
||||||
|
|||||||
@@ -54,6 +54,9 @@ rtems_status_code rtems_task_ident(
|
|||||||
{
|
{
|
||||||
Objects_Name_to_id_errors status;
|
Objects_Name_to_id_errors status;
|
||||||
|
|
||||||
|
if ( !id )
|
||||||
|
return RTEMS_INVALID_ADDRESS;
|
||||||
|
|
||||||
if ( name == OBJECTS_ID_OF_SELF ) {
|
if ( name == OBJECTS_ID_OF_SELF ) {
|
||||||
*id = _Thread_Executing->Object.id;
|
*id = _Thread_Executing->Object.id;
|
||||||
return RTEMS_SUCCESSFUL;
|
return RTEMS_SUCCESSFUL;
|
||||||
|
|||||||
Reference in New Issue
Block a user