PR#3341 fix coverity issue 966597