Skip to content

Commit

Permalink
Merge pull request #566 from jphickey/fix-565-taskprepare-return
Browse files Browse the repository at this point in the history
Fix #565, propagate return code from OS_TaskRegister_Impl()
  • Loading branch information
yammajamma authored Aug 20, 2020
2 parents d3a4a8d + 1bf0574 commit 8648e9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/os/shared/src/osapi-task.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ static int32 OS_TaskPrepare(uint32 task_id, osal_task_entry *entrypt)
{
return_code = OS_TaskRegister_Impl(task_id);
}
else

if (return_code != OS_SUCCESS)
{
*entrypt = NULL;
}
Expand Down

0 comments on commit 8648e9c

Please sign in to comment.