Fix a defect detected by a static code analysis tool