revert part of c444a4be2824e40394d602381e8336709265f04c

fix #3913

thanks FLOZi!

(fuuu... cppcheck!)