char **lines = get_ccan_file_lines(f);
for (i = 0; i < f->num_lines; i++) {
char *err = get_trailing_whitespace(lines[i]);
- if (err) {
- score->error = "Trailing whitespace"
- " found";
- score_file_error(score, f, i+1, err);
- }
+ if (err)
+ score_file_error(score, f, i+1,
+ "%s", err);
}
}
}