X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/blobdiff_plain/9e0fd4a7ae4ab89d8b38eeec4f02c2f9f4524a98..26c8c119efd44804c7b27f8637c69eda63f0c189:/error.c diff --git a/error.c b/error.c index 7897d7a..00d007d 100644 --- a/error.c +++ b/error.c @@ -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 : ""); if (fpos.line > 0) fprintf(stderr, "%d:", fpos.line); if (fpos.col > 0)