Skip to content

Fix#2735, Set Default Time tm in CFE_TIME_Print#2747

Open
arielswalker wants to merge 1 commit into
nasa:devfrom
arielswalker:fix-2735-set-default-time-tm
Open

Fix#2735, Set Default Time tm in CFE_TIME_Print#2747
arielswalker wants to merge 1 commit into
nasa:devfrom
arielswalker:fix-2735-set-default-time-tm

Conversation

@arielswalker
Copy link
Copy Markdown
Contributor

@arielswalker arielswalker commented May 28, 2026

Checklist (Please check before submitting)

Describe the contribution
Fixes #2735

Testing performed
Workflows and reran CodeSonar. CodeSonar analysis link provided in the internal GitHub issue.

Expected behavior changes
Resolve CodeSonar warning of Uninitialized Variable in cfe_time_api.c

System(s) tested on
GitHub Actions and CodeSonar

Additional context
Increased branch/line with if statement, therefore the code coverage workflows were updated.

Followed same solution as this PR.

Fixes the uninitialized variable issue, but adds new issues: Partially Uninitialized Aggregate, Use of <time.h> Time/Date Function, and Missing Literal Suffix - I can add CodeSonar Warning Suppression Comments if requested

Contributor Info - All information REQUIRED for consideration of pull request
Ariel Walker, MCSG TECH.

@arielswalker arielswalker force-pushed the fix-2735-set-default-time-tm branch 2 times, most recently from 1f9c49d to a85119a Compare May 28, 2026 16:44
@arielswalker arielswalker force-pushed the fix-2735-set-default-time-tm branch from a85119a to 3cba9b6 Compare May 28, 2026 17:09
@arielswalker arielswalker marked this pull request as ready for review May 28, 2026 17:18
@arielswalker arielswalker self-assigned this May 28, 2026
@arielswalker arielswalker changed the title Fix#2735, Set Default Time tm Fix#2735, Set Default Time tm in CFE_TIME_Print May 28, 2026
@arielswalker arielswalker marked this pull request as draft May 28, 2026 18:39
@arielswalker arielswalker marked this pull request as ready for review June 1, 2026 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Uninitialized Variable in cfe_time_api.c

2 participants