the repository which powers this website
Clear the whole context
Signed-off-by: Lars Hjemli <[email protected]>
Daniel Milde 2010-02-27
parent 8d94607 · commit 9bd3a7b
-rw-r--r--cgit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgit.c b/cgit.c
index 6bb712de..6c7e8111 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;