Fix #285, flatten logic in CF_CFDP_InitEngine() to fix bug#286
Merged
Fix #285, flatten logic in CF_CFDP_InitEngine() to fix bug#286
Conversation
| CF_AppData.config_table->chan[i].pipe_depth_input); | ||
| if (ret != CFE_SUCCESS) | ||
| { | ||
| CFE_EVS_SendEvent(CF_EID_ERR_INIT_SUB, CFE_EVS_EventType_ERROR, |
Check warning
Code scanning / CodeQL-coding-standard
Unchecked return value
| CFE_EVS_SendEvent(CF_EID_ERR_INIT_SUB, CFE_EVS_EventType_ERROR, | ||
| "CF: failed to subscribe to MID 0x%lx, returned 0x%08lx", | ||
| (unsigned long)CF_AppData.config_table->chan[i].mid_input, (unsigned long)ret); | ||
| CFE_EVS_SendEvent(CF_EID_ERR_INIT_SEM, CFE_EVS_EventType_ERROR, |
Check warning
Code scanning / CodeQL-coding-standard
Unchecked return value
| } | ||
| for (j = 0; j < CF_NUM_TRANSACTIONS_PER_CHANNEL; ++j, ++t) | ||
| { | ||
| int k; |
Check notice
Code scanning / CodeQL-coding-standard
Use of basic integral type
| t->chan_num = i; | ||
| CF_FreeTransaction(t); | ||
|
|
||
| for (k = 0; k < CF_Direction_NUM; ++k, ++c) |
Check notice
Code scanning / CodeQL-coding-standard
AV Rule 168
| CF_CList_InsertBack_Ex(&CF_AppData.engine.channels[i], CF_QueueIdx_HIST_FREE, &h->cl_node); | ||
| } | ||
| } | ||
| for (j = 0; j < CF_NUM_TRANSACTIONS_PER_CHANNEL; ++j, ++t) |
Check notice
Code scanning / CodeQL-coding-standard
AV Rule 168
21e6643 to
e2763f5
Compare
skliper
approved these changes
Jul 21, 2022
semaldona
approved these changes
Jul 21, 2022
…kipped needed code
e2763f5 to
22e2855
Compare
skliper
approved these changes
Jul 21, 2022
Contributor
|
21 July 2022: Merging as a hotfix, will review in next CCB (7/27). |
|
@dzbaker - did we ever discuss this one in a CCB? If not we should include so we can add the approved label. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist (Please check before submitting)
Describe the contribution
Fix #285, fixed error in code where semaphore name being blank would skip to the end of
CF_CFDP_InitEngine()Testing performed
Ran unit tests
Expected behavior changes
If the semaphore name is blank, continue with function instead of exiting.
System(s) tested on
Contributor Info - All information REQUIRED for consideration of pull request
Haven Carlson - NASA