Fixing cppcheck 1.58 warning