Fix for Coverity defect 21747