Coverity: Fixes 2

Some coverity fixes again. Let's do a 5 per day or something.