Fixed a 1 line issue found by cppcheck