Fix cppcheck warning.