Corrections after static code analysis with Cppcheck.