fix errors found through static code analysis, fixes #4562

Merge request reports

Loading