Skip to content

Commit

Permalink
Fix #765, add null pointer check.
Browse files Browse the repository at this point in the history
  • Loading branch information
zanzaben committed Jan 27, 2021
1 parent 4a77997 commit 3b2c729
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions src/os/shared/src/osapi-idmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1439,9 +1439,6 @@ void OS_ForEachObjectOfType(osal_objtype_t idtype, osal_id_t creator_id, OS_ArgC
OS_object_iter_t iter;
OS_creator_filter_t filter;

/* TODO: void pointer, https://github.com/nasa/osal/issues/765 */
// OS_CHECK_POINTER(callback_arg)

filter.creator_id = creator_id;
filter.user_callback = callback_ptr;
filter.user_arg = callback_arg;
Expand Down
3 changes: 1 addition & 2 deletions src/os/shared/src/osapi-printf.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,7 @@ void OS_printf(const char *String, ...)
char msg_buffer[OS_BUFFER_SIZE];
int actualsz;

/* TODO: void pointer, https://github.com/nasa/osal/issues/765 */
// OS_CHECK_POINTER(String);
BUGCHECK((String) != NULL, )

if (!OS_SharedGlobalVars.Initialized)
{
Expand Down

0 comments on commit 3b2c729

Please sign in to comment.