Fix a couple of cppcheck findings

There is so much more to fix.

Merge request reports

Loading