summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgit.c b/cgit.c
index 6bb712d..6c7e811 100644
--- a/cgit.c
+++ b/cgit.c
@@ -250,3 +250,3 @@ 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";