Fix for Coverity defect 21879