Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Build cgit_date_mode's result on the stack
| -rw-r--r-- | source/ui-shared.c | 3 |
1 file changed, 1 insertion, 2 deletions
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; } |
