Fix Coverity 1025910, 1025904, and 1025903.