Fix CID 1134603 and a gcc warning