Skip to content

Commit 60ca4ee

Browse files
committed
Suppress uninitialized-variable warning in guc.c.
Back-patch 26812bc into 9.5, to suppress one more warning in out-of-support branches. (Doesn't appear to be needed before 9.5.) Discussion: https://postgr.es/m/d0316012-ece7-7b7e-2d36-9c38cb77cb3b@enterprisedb.com
1 parent 0d9b02b commit 60ca4ee

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
@@ -9124,6 +9124,8 @@ RestoreGUCState(void *gucstate)
91249124
if (varsourcefile[0])
91259125
read_gucstate_binary(&srcptr, srcend,
91269126
&varsourceline, sizeof(varsourceline));
9127+
else
9128+
varsourceline = 0;
91279129
read_gucstate_binary(&srcptr, srcend,
91289130
&varsource, sizeof(varsource));
91299131
read_gucstate_binary(&srcptr, srcend,

0 commit comments

Comments
 (0)