Fix CID 1195076 and a gcc warning