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