Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #833, Initialize file descriptor in OS_OpenCreate #834

Merged
merged 1 commit into from
Mar 1, 2021

Conversation

skliper
Copy link
Contributor

@skliper skliper commented Mar 1, 2021

Describe the contribution
Fix #833 - Initializes the file descriptor (output parameter) for all cases in OS_OpenCreate

Avoids various "possible uninitialized variable" warnings for routines that utilize this API.

Testing performed
Build and execute unit tests, passed

Expected behavior changes
Avoids static analysis warning, output never unset.

System(s) tested on

  • Hardware: cFS Lab 5
  • OS: CentOS 7
  • Versions: Bundle main + this commit

Additional context
nasa/cFE#1185

Third party code
None

Contributor Info - All information REQUIRED for consideration of pull request
Jacob Hageman - NASA/GSFC

@skliper skliper added this to the 6.0.0 milestone Mar 1, 2021
@astrogeco astrogeco changed the base branch from main to integration-candidate March 1, 2021 20:56
@astrogeco astrogeco merged commit 38e9d6c into nasa:integration-candidate Mar 1, 2021
@skliper skliper deleted the fix833-init_filedes branch April 1, 2021 20:06
jphickey pushed a commit to jphickey/osal that referenced this pull request Aug 10, 2022
Fix nasa#818, Return message address from CFE_SB_SendMsg stub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Always initialize file descriptor in OS_OpenCreate
3 participants