Fix coverity CID 1066169
Merge pull request #980 from cmouse/coverity-1066169

Fix coverity CID 1066169