diff options
Diffstat (limited to 'error.c')
| -rw-r--r-- | error.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -393,7 +393,7 @@ static void do_error(int code, va_list ap) { if (flags & PREFIX) fputs("halibut: ", stderr); if (flags & FILEPOS) { - fprintf(stderr, "%s:", fpos.filename); + fprintf(stderr, "%s:", fpos.filename ? fpos.filename : "<standard input>"); if (fpos.line > 0) fprintf(stderr, "%d:", fpos.line); if (fpos.col > 0) |