From 9bd3a7b1ea6c5863d7cba1b5352ce707f5d129a0 Mon Sep 17 00:00:00 2001 From: Daniel Milde Date: Sun, 21 Feb 2010 14:38:59 +0100 Subject: Clear the whole context Signed-off-by: Lars Hjemli --- cgit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cgit.c') 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; -- cgit v1.2.3-59-g8ed1b