coverity fixes

:+1: I misread the man page on this one.