@techee commented on this pull request.
{
guint j;
- for (j = 0; j < tm_files->len; j++) + if (!*header_candidates)
So I guess the idea is to avoid multiple assignments to *header_candidates in case a file is included multiple times (maybe legitimately, via different directories)?
This is just an optimization so the code inside the `if` block doesn't have to be executed if we already found `header_candidates`.