X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=builtin-rev-list.c;h=06cdeb7ebe7468911a7bee670bf5ec539185ba54;hb=310d188f7e1d1fbbeace17d5c62e422fd0b5a824;hp=facaff288dba2789f0637c4554bd130440e2a3da;hpb=a3fcc0562cda47f6109e81e456fb6177d7057117;p=git.git diff --git a/builtin-rev-list.c b/builtin-rev-list.c index facaff288..06cdeb7eb 100644 --- a/builtin-rev-list.c +++ b/builtin-rev-list.c @@ -107,8 +107,7 @@ static void show_commit(struct commit *commit) putchar('\n'); if (revs.verbose_header && commit->buffer) { - struct strbuf buf; - strbuf_init(&buf, 0); + struct strbuf buf = STRBUF_INIT; pretty_print_commit(revs.commit_format, commit, &buf, revs.abbrev, NULL, NULL, revs.date_mode, 0);