aboutsummaryrefslogtreecommitdiffhomepage
path: root/io.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2026-02-24 15:47:31 +0100
committerlemon <lsof@mailbox.org>2026-02-24 15:47:31 +0100
commit5fd0c9dafe8c05e0abe8c37e9be4ddd5c8af0811 (patch)
tree145af69c7d8fc00981039e56ca6f49c23ecc517d /io.c
parent9f202ac53acfac00addb5b6e4c9b1e5c7a33ea45 (diff)
fix io fa8c39d6df : make buffer shared (for nested note())
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" };