X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=fsck.c;h=60bd4bbf6a2206e2b1991093ea5d84be7f338f73;hb=eb56c82163487fe07ba04f2b365a557282cbd766;hp=6f266c1ea4b8df503c211170741fa5b490a6a02a;hpb=476e42422d3a62a6aa301e41ba3def6882d37e9e;p=git.git diff --git a/fsck.c b/fsck.c index 6f266c1ea..60bd4bbf6 100644 --- a/fsck.c +++ b/fsck.c @@ -349,7 +349,7 @@ int fsck_error_function(struct object *obj, int type, const char *fmt, ...) va_list ap; struct strbuf sb = STRBUF_INIT; - strbuf_addf(&sb, "object %s:", obj->sha1?sha1_to_hex(obj->sha1):"(null)"); + strbuf_addf(&sb, "object %s:", sha1_to_hex(obj->sha1)); va_start(ap, fmt); strbuf_vaddf(&sb, fmt, ap);