2004-07-14 Joel Sherrill <joel@OARcorp.com>

PR 651/core
	* src/taskident.c: Add NULL check for id.
This commit is contained in:
Joel Sherrill
2004-07-14 14:32:23 +00:00
parent 469c41a421
commit 72dfb969aa
2 changed files with 8 additions and 0 deletions

View File

@@ -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>
PR 631/rtems

View File

@@ -54,6 +54,9 @@ rtems_status_code rtems_task_ident(
{
Objects_Name_to_id_errors status;
if ( !id )
return RTEMS_INVALID_ADDRESS;
if ( name == OBJECTS_ID_OF_SELF ) {
*id = _Thread_Executing->Object.id;
return RTEMS_SUCCESSFUL;