all repos — cgit @ 71d3ca75d1e941948dd3b965f5a5c2f2865e94fd

a hyperfast web frontend for git written in c

Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Sat, 27 Feb 2010 12:53:27 +0100
commit

71d3ca75d1e941948dd3b965f5a5c2f2865e94fd

parent

547a64fbd65de293c290f4e18bbeae958d54aaa7

2 files changed, 3 insertions(+), 3 deletions(-)

jump to
M cgit.ccgit.c

@@ -260,7 +260,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;
M ui-shared.cui-shared.c

@@ -246,7 +246,7 @@ {

char *delim; delim = repolink(title, class, page, head, path); - if (rev && strcmp(rev, ctx.qry.head)) { + if (rev && ctx.qry.head != NULL && strcmp(rev, ctx.qry.head)) { html(delim); html("id="); html_url_arg(rev);

@@ -363,7 +363,7 @@ {

char *delim; delim = repolink(title, class, "diff", head, path); - if (new_rev && strcmp(new_rev, ctx.qry.head)) { + if (new_rev && ctx.qry.head != NULL && strcmp(new_rev, ctx.qry.head)) { html(delim); html("id="); html_url_arg(new_rev);