From 71d3ca75d1e941948dd3b965f5a5c2f2865e94fd Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Sat, 27 Feb 2010 11:53:27 +0000 Subject: Merge branch 'stable' --- (limited to 'cgit.c') diff --git a/cgit.c b/cgit.c index e46c00a..9305d0a 100644 --- a/cgit.c +++ b/cgit.c @@ -260,7 +260,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