commit - 390d412cade5c0345973c41950ca735d2cf96342
commit + a0f36e0337978dfc927b0bc7c5fae4ca03a8bb00
blob - de158a382f5ab05687a8bf792a1304d479a13be2
blob + 218a347a2018ecd36b16e09b88993d616dc7fec1
--- gotweb/gotweb.c
+++ gotweb/gotweb.c
time_t committer_time = 0, cmp_time = 0;
const char *refname;
char *repo_age = NULL;
+
+ SIMPLEQ_INIT(&refs);
if (repo_ref == NULL)
return NULL;
if (strncmp(repo_ref, "refs/heads/", 11) == 0)
is_head = 1;
- SIMPLEQ_INIT(&refs);
if (gw_trans->gw_conf->got_show_repo_age == false) {
if ((asprintf(&repo_age, "")) == -1)
return NULL;
struct buf *diffbuf = NULL;
size_t newsize;
+ SIMPLEQ_INIT(&refs);
+
error = buf_alloc(&diffbuf, 0);
if (error)
return NULL;
- SIMPLEQ_INIT(&refs);
error = got_repo_open(&repo, gw_trans->repo_path, NULL);
if (error)
char *heads, *head_row = NULL, *head_navs_disp = NULL, *age = NULL;
struct buf *diffbuf = NULL;
size_t newsize;
+
+ SIMPLEQ_INIT(&refs);
error = buf_alloc(&diffbuf, 0);
if (error)
if (error)
goto done;
- SIMPLEQ_INIT(&refs);
error = got_ref_list(&refs, repo, "refs/heads", got_ref_cmp_by_name,
NULL);
if (error)