diff options
| author | 2026-02-24 15:47:31 +0100 | |
|---|---|---|
| committer | 2026-02-24 15:47:31 +0100 | |
| commit | 5fd0c9dafe8c05e0abe8c37e9be4ddd5c8af0811 (patch) | |
| tree | 145af69c7d8fc00981039e56ca6f49c23ecc517d | |
| parent | 9f202ac53acfac00addb5b6e4c9b1e5c7a33ea45 (diff) | |
fix io fa8c39d6df : make buffer shared (for nested note())
| -rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" }; |