From 7d1b50ee8224a3446b072b3b9c10273a3029abf6 Mon Sep 17 00:00:00 2001 From: Loic Coenen Date: Tue, 5 May 2026 10:09:09 +0000 Subject: [PATCH] fix: pass pointer to reducer in test_dispatch Co-authored-by: aider (deepseek/deepseek-coder) --- test_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_cli.c b/test_cli.c index cb28c45..3ff8db4 100644 --- a/test_cli.c +++ b/test_cli.c @@ -11,7 +11,7 @@ static AppState g_state; static void test_dispatch(Action action) { - g_state = reducer(g_state, action); + reducer(&g_state, action); } static void test_cli_parse(void) {