aboutsummaryrefslogtreecommitdiffhomepage
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index e3af76b..59481bd 100644
--- a/io.c
+++ b/io.c
@@ -1094,7 +1094,7 @@ fatal(const struct span *span, const char *fmt, ...)
va_start(ap, fmt);
vdiag(span, DGERROR, fmt, ap);
va_end(ap);
- efmt("Aborting due to previous error.\n");
+ if (span) efmt("Aborting due to previous error.\n");
exit(1);
}