From ac5d97dccae2cf724f2fc8592eb9e01be082b993 Mon Sep 17 00:00:00 2001 From: Cameron Reed Date: Wed, 16 Oct 2024 11:06:00 -0600 Subject: [PATCH] Fix bug where writer could be used after its file is closed --- src/log.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/log.zig b/src/log.zig index 8759a44..58d862d 100644 --- a/src/log.zig +++ b/src/log.zig @@ -25,6 +25,7 @@ pub fn setLevel(level: Level) void { pub fn deinit() void { if (writer) |w| { w.context.close(); + writer = null; } }