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 e4e04bb..f29e6d3 100644
--- a/io.c
+++ b/io.c
@@ -1029,7 +1029,7 @@ vdiag(const struct span *span, enum diagkind kind, const char *fmt, va_list ap)
* in the unbuffered stderr output, use a separate buffer here and write()
* it all out bypassing stdio */
static char ebuf[4096];
- struct wbuf out = FDBUF(ebuf, sizeof ebuf, STDERR_FILENO);
+ static struct wbuf out = FDBUF(ebuf, sizeof ebuf, STDERR_FILENO);
static int depth = 0; /* needed for nested note() calls */
static const char *label[] = { "error", "warning", "note" };