Skip to content

Commit

Permalink
Merge pull request #304 from jphickey/fix-303-moduletype-check
Browse files Browse the repository at this point in the history
Fix #303, check that module type is not invalid
  • Loading branch information
astrogeco authored Sep 7, 2021
2 parents 6d40816 + 82f5339 commit ff63abc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fsw/shared/src/cfe_psp_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void CFE_PSP_ModuleInitList(CFE_StaticModuleLoadEntry_t *ListPtr)
while (Entry->Name != NULL)
{
ApiPtr = (CFE_PSP_ModuleApi_t *)Entry->Api;
if ((uint32)ApiPtr->ModuleType == CFE_PSP_MODULE_TYPE_SIMPLE && ApiPtr->Init != NULL)
if ((uint32)ApiPtr->ModuleType != CFE_PSP_MODULE_TYPE_INVALID && ApiPtr->Init != NULL)
{
(*ApiPtr->Init)(CFE_PSP_MODULE_BASE | CFE_PSP_ModuleCount);
}
Expand Down

0 comments on commit ff63abc

Please sign in to comment.