git/list[1] front-page[2] threads[3] people[4] search[5] about
wed 2026-10-07 18:10 UTC

Re: Subject: [PATCH] object-file: fix sparse 'plain integer as NULL pointer' error

From
Ramsay Jones <ramsay@ramsayjones.plus.com>
Date
Mar 20, 2026, 03:44 UTC
Message-ID
<12187836-0b2d-4e82-ae0c-4da972aee7e7@ramsayjones.plus.com>
In-Reply-To
<b2656d8c-7878-489e-a78b-ecb441570bf6@ramsayjones.plus.com>
On 20/03/2026 02:04, Ramsay Jones wrote:
Show 19 quoted lines
>
> On 20/03/2026 1:35 am, Junio C Hamano wrote:
>> Ramsay Jones <ramsay@ramsayjones.plus.com> writes:
>>
>>> 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.
> Hmm, odd. I didn't do a 'branch --contains', obviously, but this only started tonight
> (and I built git yesterday - master, next and seen), so I just assumed ... ;)
>
> Sorry about that.
>
Heh, I could not sleep, so took another look! :)

The problem was actually caused by the 'ps/odb-generic-object-name-handling' branch and commit 936c2bfecb ("odb: introduce

`struct odb_for_each_object_options`", 2026-03-19). In particular,  that commit changes the type of the last parameter of the

odb_source_loose_for_each_object() function from 'unsigned' to 'const struct odb_for_each_object_options *', without

changing one call site from '0' to 'NULL'.
OK, I can go to bed now!
Thanks.
ATB,
Ramsay Jones
Previous: Ramsay JonesNext: Junio C Hamano
Message 4 of 6 in “Subject: [PATCH] object-file: fix sparse 'plain integer as NULL pointer' error”
  1. Ramsay JonesMar 19, 2026
  2. Junio C HamanoMar 20, 2026
  3. Ramsay JonesMar 20, 2026
  4. Ramsay JonesMar 20, 2026
  5. Junio C HamanoMar 20, 2026
  6. Patrick SteinhardtMar 20, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.