Skip to content

Commit 618d139

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 09a3b19 commit 618d139

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

+2
Original file line numberDiff line numberDiff line change
@@ -9325,6 +9325,8 @@ RestoreGUCState(void *gucstate)
93259325
if (varsourcefile[0])
93269326
read_gucstate_binary(&srcptr, srcend,
93279327
&varsourceline, sizeof(varsourceline));
9328+
else
9329+
varsourceline = 0;
93289330
read_gucstate_binary(&srcptr, srcend,
93299331
&varsource, sizeof(varsource));
93309332
read_gucstate_binary(&srcptr, srcend,

0 commit comments

Comments
 (0)