[WIP] Fix clang analysis warnings. (6)

Fix 3 warnings.

I will be adding more to this PR.