[PATCH 4/6] git: handle string_list_init_{nodup, dup}() changes for ctx.cfg.mimetypes
Vegard Nossum
vegard.nossum at oracle.com
Mon Oct 17 11:50:08 UTC 2022
The newer git version this requires changes for these upstream commits:
* bd4232fac3319890429ec303e2f7c3d287c8eaa3
Merge branch 'ab/struct-init'
Signed-off-by: Vegard Nossum <vegard.nossum at oracle.com>
---
cgit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cgit.c b/cgit.c
index dc6b491..e64694b 100644
--- a/cgit.c
+++ b/cgit.c
@@ -432,7 +432,7 @@ static void prepare_context(void)
ctx.page.modified = time(NULL);
ctx.page.expires = ctx.page.modified;
ctx.page.etag = NULL;
- string_list_init(&ctx.cfg.mimetypes, 1);
+ string_list_init_dup(&ctx.cfg.mimetypes);
if (ctx.env.script_name)
ctx.cfg.script_name = xstrdup(ctx.env.script_name);
if (ctx.env.query_string)
--
2.35.1.46.g38062e73e0
More information about the CGit
mailing list