Skip to content

Commit

Permalink
Merge pull request #1909 from pavll/fix-1302-use-macro-insteadof-zero…
Browse files Browse the repository at this point in the history
…-compare

Fix #1302, Use macro in CFE_ResourceId_IsDefined
  • Loading branch information
astrogeco committed Nov 17, 2021
2 parents 60dbe34 + f46bc4f commit b2e37c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/core_api/fsw/inc/cfe_resourceid.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ static inline bool CFE_ResourceId_Equal(CFE_ResourceId_t id1, CFE_ResourceId_t i
*/
static inline bool CFE_ResourceId_IsDefined(CFE_ResourceId_t id)
{
return (CFE_RESOURCEID_UNWRAP(id) != 0);
return (!CFE_ResourceId_Equal(id, CFE_RESOURCEID_UNDEFINED));
}

/** \} */
Expand Down

0 comments on commit b2e37c8

Please sign in to comment.