Fixed a Coverity issue.