From 28ece34c8d13b25c6cc6dcd662aad63f1ddef21c Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 13:27:14 -0700 Subject: Build cgit_date_mode's result on the stack --- source/ui-shared.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/ui-shared.c') diff --git a/source/ui-shared.c b/source/ui-shared.c index 6858a1c..6c1b85e 100644 --- a/source/ui-shared.c +++ b/source/ui-shared.c @@ -1279,9 +1279,8 @@ void cgit_submodule_link(const char *class, char *path, const char *rev) struct date_mode cgit_date_mode(enum date_mode_type type) { - static struct date_mode mode; + struct date_mode mode = date_mode_from_type(type); - mode.type = type; mode.local = ctx.cfg.local_time; return mode; } -- cgit