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