Fix cppcheck warning