mirror of
https://github.com/postgres/postgres.git
synced 2025-12-10 14:22:35 +03:00
Fix compiler warning in back branches (9.6, 10).
Back-patch a tiny bit of commit fbb2e9a0 into 9.6 and 10, to silence an
uninitialized variable warning from GCC 10.2. Seen on buildfarm member
handfish, and my own development workflow where I like to use -Werror.
Discussion: https://postgr.es/m/CA%2BhUKGJRcwvK86Uf5t-FrTekZjqHtpv3u%3D3MuBg8Zw8R933Mqg%40mail.gmail.com
This commit is contained in:
@@ -9437,6 +9437,8 @@ RestoreGUCState(void *gucstate)
|
||||
if (varsourcefile[0])
|
||||
read_gucstate_binary(&srcptr, srcend,
|
||||
&varsourceline, sizeof(varsourceline));
|
||||
else
|
||||
varsourceline = 0;
|
||||
read_gucstate_binary(&srcptr, srcend,
|
||||
&varsource, sizeof(varsource));
|
||||
read_gucstate_binary(&srcptr, srcend,
|
||||
|
||||
Reference in New Issue
Block a user