Author: Daniel Milde <info@milde.cz>
Clear the whole context Signed-off-by: Lars Hjemli <hjemli@gmail.com>
cgit.c | 2 +-
diff --git a/cgit.c b/cgit.c index 6bb712de0d3d6548fa34174fbb2d2cf61c5078fc..6c7e8111c4cf31456983fe9f946cd5eb8410c3c8 100644 --- a/cgit.c +++ b/cgit.c @@ -248,7 +248,7 @@ } 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;