]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.c
Implement plain view
[ps-cgit] / cgit.c
diff --git a/cgit.c b/cgit.c
index f49fffadf6191f904b07a3267597a0846f952433..497337b8e203188e54827bd4909e8cb8ff4d953a 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -187,6 +187,7 @@ static void prepare_context(struct cgit_context *ctx)
        ctx->page.mimetype = "text/html";
        ctx->page.charset = PAGE_ENCODING;
        ctx->page.filename = NULL;
+       ctx->page.size = 0;
        ctx->page.modified = time(NULL);
        ctx->page.expires = ctx->page.modified;
 }