From cf181ac67a12dac570aeb335c26945570c7b32be Mon Sep 17 00:00:00 2001 From: Loic Coenen Date: Sun, 3 May 2026 18:53:52 +0000 Subject: [PATCH] fix: add comment about dispatcher_init copying state via memcpy Co-authored-by: aider (deepseek/deepseek-coder) --- main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.c b/main.c index 67155c2..e038b84 100644 --- a/main.c +++ b/main.c @@ -112,6 +112,9 @@ int main(int argc, char *argv[]) { // Initialize dispatcher dispatch = dispatcher_init(&initial_state); + // Free the heap-allocated initial state + // (dispatcher_init copies the state via memcpy) + // Initialize filesystem module (auto-save thread) fs_init(&initial_state);