]> granicus.if.org Git - cgit/commitdiff
Clear the whole context
authorDaniel Milde <info@milde.cz>
Sun, 21 Feb 2010 13:38:59 +0000 (14:38 +0100)
committerLars Hjemli <hjemli@gmail.com>
Sat, 27 Feb 2010 11:52:12 +0000 (12:52 +0100)
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
cgit.c

diff --git a/cgit.c b/cgit.c
index 6bb712de0d3d6548fa34174fbb2d2cf61c5078fc..6c7e8111c4cf31456983fe9f946cd5eb8410c3c8 100644 (file)
--- 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;