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

m.litsarev@postgrespro.ru

From: m.litsarev@postgrespro.ru
To: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: Ewan Young <kdbase.hack@gmail.com>, pgsql-hackers@lists.postgresql.org
Date: 2026-06-16T15:22:44Z
Lists: pgsql-hackers
> ...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.

Mikhail



Commits

  1. Silence uninitialized variable warning with some compiler versions

  2. pg_regress: Include diffs in TAP output