Changeset c562d0c in rtems


Ignore:
Timestamp:
Nov 19, 2014, 8:47:57 PM (5 years ago)
Author:
Josh Oguin <josh.oguin@…>
Branches:
4.11, master
Children:
8b9bc54
Parents:
fbafb8f2
git-author:
Josh Oguin <josh.oguin@…> (11/19/14 20:47:57)
git-committer:
Joel Sherrill <joel.sherrill@…> (11/26/14 13:51:59)
Message:

objectimpl.h: Add _Assert() to _Objects_Invalidate_Id()

CodeSonar? flagged this as a possible NULL deference. This should never
occur but adding the _Assert() ensures we are guarding against that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/objectimpl.h

    rfbafb8f2 rc562d0c  
    876876)
    877877{
     878  _Assert( information != NULL );
     879  _Assert( the_object != NULL );
     880
    878881  _Objects_Set_local_object(
    879882    information,
     
    897900)
    898901{
     902  _Assert( information != NULL );
     903  _Assert( the_object != NULL );
     904
    899905  the_object->name = name;
    900906
Note: See TracChangeset for help on using the changeset viewer.