X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/f2bf0a05280edddb4961214adfd7b440191737e2..15c64c5e474bfaa7fd68c588a13d20deefe1c59d:/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;