diff options
context:
space:
mode:
authorDaniel Milde <info@milde.cz>
committerLars Hjemli <hjemli@gmail.com>
commit
parent
tree
download
Clear the whole context
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r--cgit.c2
1 file changed, 1 insertion, 1 deletion
diff --git a/cgit.c b/cgit.c
index 6bb712d..6c7e811 100644
--- a/cgit.c
+++ b/cgit.c
@@ -248,7 +248,7 @@ char *xstrdupn(const char *str)
static void prepare_context(struct cgit_context *ctx)
{
- memset(ctx, 0, sizeof(ctx));
+ memset(ctx, 0, sizeof(*ctx));
ctx->cfg.agefile = "info/web/last-modified";
ctx->cfg.nocache = 0;
ctx->cfg.cache_size = 0;