Fixed a warning of cppcheck