Skip to content

Commit

Permalink
Merge pull request nasa#361 from nasa/ic-20200226
Browse files Browse the repository at this point in the history
Integration Candidate 20200226
  • Loading branch information
astrogeco authored Feb 28, 2020
2 parents 8239eb5 + 7d1f33d commit a1e9dbf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ This distribution contains:

Version Notes:
==============

- 5.0.7: DEVELOPMENT
- Fixes memset bug
- Minor updates (see https://github.com/nasa/osal/pull/361)
- 5.0.6: DEVELOPMENT
- Minor updates (see https://github.com/nasa/osal/pull/355)
- 5.0.5: DEVELOPMENT
Expand Down Expand Up @@ -117,4 +119,3 @@ License information:
====================

This software is licensed under NASAs Open Source Agreement. The release of the software is conditional upon the recipients acceptance of the Open Source Agreement. Please see the file: NASA_Open_Source_Agreement_1_3-OS_AbstractionLayer.txt

2 changes: 1 addition & 1 deletion src/os/inc/osapi-version.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#define OS_MAJOR_VERSION 5
#define OS_MINOR_VERSION 0
#define OS_REVISION 6
#define OS_REVISION 7
#define OS_MISSION_REV 0

/**
Expand Down
3 changes: 2 additions & 1 deletion src/os/posix/osapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1465,6 +1465,8 @@ int32 OS_BinSemCreate_Impl (uint32 sem_id, uint32 initial_value, uint32 options)
mutex_created = 0;
cond_created = 0;
sem = &OS_impl_bin_sem_table[sem_id];
memset(sem, 0, sizeof (*sem));

do
{
/*
Expand Down Expand Up @@ -1522,7 +1524,6 @@ int32 OS_BinSemCreate_Impl (uint32 sem_id, uint32 initial_value, uint32 options)
** fill out the proper OSAL table fields
*/

memset(sem, 0, sizeof (*sem));
sem->current_value = initial_value;

return_code = OS_SUCCESS;
Expand Down

0 comments on commit a1e9dbf

Please sign in to comment.