Re: Subject: [PATCH] object-file: fix sparse 'plain integer as NULL pointer' error
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 20, 2026, 01:35 UTC
- Message-ID
- <xmqqqzpfgu5s.fsf@gitster.g>
- In-Reply-To
- <97c623fe-4e03-4fbe-a6af-9c01c101bae4@ramsayjones.plus.com>
Ramsay Jones <ramsay@ramsayjones.plus.com> writes:
Show 8 quoted lines
> Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
> ---
>
> Hi Patrick,
>
> When you next re-roll your 'ps/object-counting' branch, could you please squash this
> into the patch equivalent to the commit 2b24db1110 ("object-file: generalize counting
> objects",2026-03-12) in tonight's 'seen' branch.The topic being in 'next' since March 17th, that is a bit awkward to arrange. I can queue the fix on top instead.
Show 23 quoted lines
>
> Thanks,
>
> ATB,
> Ramsay Jones
>
>
> object-file.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/object-file.c b/object-file.c
> index 35be7e58cb..3708b8f18d 100644
> --- a/object-file.c
> +++ b/object-file.c
> @@ -1941,7 +1941,7 @@ int odb_source_loose_count_objects(struct odb_source *source,
> } else {
> *out = 0;
> ret = odb_source_loose_for_each_object(source, NULL, count_loose_object,
> - out, 0);
> + out, NULL);
> }
>
> out: