Skip to content

Fix nasa#1542, removed unnecessary call to UT_GetStubEntry() in UT_Co…#1543

Merged
myc-yang merged 1 commit into
nasa:devfrom
myc-yang:1542-removed-unnecessary-ut-getstubentry
May 28, 2026
Merged

Fix nasa#1542, removed unnecessary call to UT_GetStubEntry() in UT_Co…#1543
myc-yang merged 1 commit into
nasa:devfrom
myc-yang:1542-removed-unnecessary-ut-getstubentry

Conversation

@myc-yang

Copy link
Copy Markdown
Contributor

Checklist (Please check before submitting)

Describe the contribution
Fixes #1542 by removing unnecessary call to UT_GetStubEntry() in UT_ConfigureGenericStubReturnValue() in ut_assert/src/utstubs.c because the return value will simply be overwritten by the following if-else statement

Testing performed

Expected behavior changes
No impact to behavior

System(s) tested on

  • Hardware: PC
  • OS: Ubuntu 18.04
  • Versions: [e.g. cFE 6.6, OSAL 4.2, PSP 1.3 for mcp750, any related apps or tools]

Additional context
Add any other context about the contribution here.

Third party code
If included, identify any third party code and provide text file of license

Contributor Info - All information REQUIRED for consideration of pull request
Michael Yang NASA/GSFC

…nfigureGenericStubReturnValue() in ut_assert/src/utstubs.c
@myc-yang myc-yang merged commit c7f57b7 into nasa:dev May 28, 2026
18 of 19 checks passed
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.

Remove unnecessary call StubPtr = UT_GetStubEntry(FuncKey, UT_ENTRYTYPE_UNUSED) in UT_ConfigureGenericStubReturnValue() in ut_assert/src/utstubs.c

3 participants