Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
pack-objects: don't leak pack window reference when splitting packs
[gitweb.git]
/
builtin-branch.c
diff --git
a/builtin-branch.c
b/builtin-branch.c
index b1a2ad7a6b3b150cda8d031a87352a4daedc40ea..8d634ff571ce34ce21a5519628d6f66a7e52aa93 100644
(file)
--- a/
builtin-branch.c
+++ b/
builtin-branch.c
@@
-334,11
+334,10
@@
static void print_ref_item(struct ref_item *item, int maxwidth, int verbose,
}
if (verbose) {
- struct strbuf subject;
+ struct strbuf subject
= STRBUF_INIT
;
const char *sub = " **** invalid ref ****";
char stat[128];
- strbuf_init(&subject, 0);
stat[0] = '\0';
commit = item->commit;