Fix coverity issue #46911.