Fixed a static analysis issue detected by Coverity Scan.
Merge pull request #1 from collin80/master

Fixed a static analysis issue detected by Coverity Scan.