X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=builtin-rev-list.c;h=06cdeb7ebe7468911a7bee670bf5ec539185ba54;hb=769b008e0eaef6876e68c65538f81f841b53cb8e;hp=facaff288dba2789f0637c4554bd130440e2a3da;hpb=58245a5e40e1f95976a4f0fd53c2e8d3a1c3c763;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);