Skip to content

Commit 26812bc

Browse files
committed
Fix compiler warning in back branches (9.6, 10).
Back-patch a tiny bit of commit fbb2e9a 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
1 parent 800131d commit 26812bc

File tree

1 file changed

+2
-0
lines changed
  • src/backend/utils/misc

1 file changed

+2
-0
lines changed

src/backend/utils/misc/guc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9437,6 +9437,8 @@ RestoreGUCState(void *gucstate)
94379437
if (varsourcefile[0])
94389438
read_gucstate_binary(&srcptr, srcend,
94399439
&varsourceline, sizeof(varsourceline));
9440+
else
9441+
varsourceline = 0;
94409442
read_gucstate_binary(&srcptr, srcend,
94419443
&varsource, sizeof(varsource));
94429444
read_gucstate_binary(&srcptr, srcend,

0 commit comments

Comments
 (0)