X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=fsck.c;h=60bd4bbf6a2206e2b1991093ea5d84be7f338f73;hb=08303c3636ef750bfafd1c47f363120cb439b367;hp=6f266c1ea4b8df503c211170741fa5b490a6a02a;hpb=f3b173daf400813c7f587a011290dac31de2b68e;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);