Fix some minor coverity defects.