Fix Cppcheck warning