- if (spc > s->section.txt && spc[-1] == ':' &&
- strncmp(s->section.txt, "File: ", 6) != 0)
- /* Ignore this section */
- continue;
- if (strncmp(s->section.txt, "File: ", 6) != 0) {
+ if (spc > s->section.txt && spc[-1] == ':') {
+ if (strncmp(s->section.txt, "File: ", 6) != 0 &&
+ (section.txt == NULL ||
+ text_cmp(s->section, section) != 0))
+ /* Ignore this section */
+ continue;
+ } else {