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]
/
fsck.c
diff --git
a/fsck.c
b/fsck.c
index 797e3178ae279f444d2efa7e3758652ad0898dd7..0cf5f012bdfa876fae4e15ed9cb94ed304314bf6 100644
(file)
--- a/
fsck.c
+++ b/
fsck.c
@@
-307,9
+307,8
@@
int fsck_error_function(struct object *obj, int type, const char *fmt, ...)
{
va_list ap;
int len;
- struct strbuf sb;
+ struct strbuf sb
= STRBUF_INIT
;
- strbuf_init(&sb, 0);
strbuf_addf(&sb, "object %s:", obj->sha1?sha1_to_hex(obj->sha1):"(null)");
va_start(ap, fmt);