From 9bd3a7b1ea6c5863d7cba1b5352ce707f5d129a0 Mon Sep 17 00:00:00 2001 From: Daniel Milde Date: Sun, 21 Feb 2010 13:38:59 +0000 Subject: Clear the whole context Signed-off-by: Lars Hjemli --- 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 v0.9.0.2