Re: DEREF_AFTER_NULL: src/common/jsonapi.c:2529

Andreas Karlsson <andreas@proxel.se>

From: Andreas Karlsson <andreas@proxel.se>
To: Галкин Сергей <galkin@rutoken.ru>, "pgsql-hackers@lists.postgresql.org" <pgsql-hackers@lists.postgresql.org>
Date: 2026-04-06T12:01:41Z
Lists: pgsql-hackers
On 4/6/26 1:59 PM, Andreas Karlsson wrote:
> If someone has a patch improving readability I would personally before 
> merging this since this code feels more complex than it ideally should 
> be but adding this noop NULL check to silence a false positive from a 
> static analyzer does not seem like an improvement.

Whops, accidentally forgot to type some words there. That should have been:

"[...] I would personally be all for merging it since this code [...]"

-- 
Andreas Karlsson
Percona