This can happen if the documentation doesn't have a properly formatted summary line,
and it causes the examples_relevant test to segfault.
if (!streq(d->type, "example"))
continue;
if (!streq(d->type, "example"))
continue;
+ if (!d->function) {
+ score_file_error(score, f, d->srcline+1,
+ "Function name not found in summary line");
+ continue;
+ }
for (i = 0; i < d->num_lines; i++) {
if (strstr(d->lines[i], d->function))
found = true;
for (i = 0; i < d->num_lines; i++) {
if (strstr(d->lines[i], d->function))
found = true;