From 5fd0c9dafe8c05e0abe8c37e9be4ddd5c8af0811 Mon Sep 17 00:00:00 2001 From: lemon Date: Tue, 24 Feb 2026 15:47:31 +0100 Subject: fix io fa8c39d6df : make buffer shared (for nested note()) --- io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" }; -- cgit v1.2.3