Fix a couple cppcheck warnings.