Don't display "In file included from internal:0:0-0:" for errors occuring
in a parsed file.
Signed-off-by: Patrick McHardy <kaber@trash.net>
if (indesc->location.indesc != NULL) {
const char *prefix = "In file included from";
iloc = &indesc->location;
- for (tmp = iloc->indesc; tmp != NULL; tmp = iloc->indesc) {
+ for (tmp = iloc->indesc;
+ tmp != NULL && tmp->type != INDESC_INTERNAL;
+ tmp = iloc->indesc) {
fprintf(f, "%s %s:%u:%u-%u:\n", prefix,
tmp->name,
iloc->first_line, iloc->first_column,