Fixed bug #720627

It was a trivial problem, detected by cppcheck.