Unidiff1 files changed, 1 insertions, 1 deletions
|
diff --git a/cgit.c b/cgit.c index e46c00a..9305d0a 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -259,9 +259,9 @@ char *xstrdupn(const char *str) |
259 | } |
259 | } |
260 | |
260 | |
261 | static void prepare_context(struct cgit_context *ctx) |
261 | static void prepare_context(struct cgit_context *ctx) |
262 | { |
262 | { |
263 | memset(ctx, 0, sizeof(ctx)); |
263 | memset(ctx, 0, sizeof(*ctx)); |
264 | ctx->cfg.agefile = "info/web/last-modified"; |
264 | ctx->cfg.agefile = "info/web/last-modified"; |
265 | ctx->cfg.nocache = 0; |
265 | ctx->cfg.nocache = 0; |
266 | ctx->cfg.cache_size = 0; |
266 | ctx->cfg.cache_size = 0; |
267 | ctx->cfg.cache_dynamic_ttl = 5; |
267 | ctx->cfg.cache_dynamic_ttl = 5; |
|