Re: [PATCH] fsck: avoid looking at NULL blob->object
- From
Jeff King <peff@peff.net>
- Date
- Jun 9, 2018, 09:21 UTC
- Message-ID
- <20180609092135.GC6817@sigill.intra.peff.net>
- In-Reply-To
- <CAN0heSqHRpOerHV8tgA-ntU6QvYQMxgrXPCPsrVcHLKUSwANXQ@mail.gmail.com>
On Sat, Jun 09, 2018 at 10:50:36AM +0200, Martin Ågren wrote:
Show 7 quoted lines
> On 9 June 2018 at 10:32, Jeff King <peff@peff.net> wrote: > > Except it _does_ do one non-trivial thing, which is call the > > report() function, which wants us to pass a pointer to a > > "struct object". Which we don't have (we have only a "struct > > object_id"). So we erroneously passed the NULL object, which > > s/passed/dereferenced/? Probably doesn't affect the fix though.
Well, we passed it, and then that function dereferenced it. :)
I'm going to re-roll for the minor bits that Eric pointed out, so I'll try to word this better.
-Peff