Re: Fix warning: ‘startpos’ may be used uninitialized in function ‘results_differ’

Heikki Linnakangas <hlinnaka@iki.fi>

From: Heikki Linnakangas <hlinnaka@iki.fi>
To: m.litsarev@postgrespro.ru
Cc: Ewan Young <kdbase.hack@gmail.com>, pgsql-hackers@lists.postgresql.org
Date: 2026-06-17T06:03:28Z
Lists: pgsql-hackers
On 16/06/2026 18:22, m.litsarev@postgrespro.ru wrote:
>> ...I propose the attached, to bail out if the fopen() fails. (As the 
>> original patch, this looks a lot smaller with "diff -w")
> I agree the v2 patch is even better.

Committed, thanks!

- Heikki




Commits

  1. Silence uninitialized variable warning with some compiler versions

  2. pg_regress: Include diffs in TAP output