**Checklist** * [x] I reviewed the [Contributing Guide](https://github.com/nasa/cFS/blob/main/CONTRIBUTING.md). * [x] I performed a cursory search to see if the bug report is relevant, not redundant, nor in conflict with other tickets. **Describe the bug** A few cases of variables declared mid-function left here. Copy of https://github.com/nasa/CF/issues/109 **Expected behavior** All variables should be declared at the top of the function. **Reporter Info** Avi Weiss @thnkslprpt