Fix a few things about which Coverity complained.
Merge pull request #2001 from fontforge/coverity_20141216_1

Fix a few things about which Coverity complained.