Fix coverity issue #46917.