aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2018-08-24 10:51:10 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2018-08-24 10:51:25 -0400
commit7ed1db3f4625c4cb873a21c380913433820d50ce (patch)
tree99b7cdac5b9d7ad8c946e5e2488eaa75c54cbcca
parent5b4555f90c08dd0d31572b22f5b2affdc4304b69 (diff)
downloadpostgresql-7ed1db3f4625c4cb873a21c380913433820d50ce.tar.gz
postgresql-7ed1db3f4625c4cb873a21c380913433820d50ce.zip
Suppress uninitialized-variable warning in new SCRAM code.
While we generally don't sweat too much about "may be used uninitialized" warnings from older compilers, I noticed that there's a fair number of buildfarm animals that are producing such a warning *only* for this variable. So it seems worth silencing.
-rw-r--r--src/backend/libpq/auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/libpq/auth.c b/src/backend/libpq/auth.c
index 68bb62d873c..85175655359 100644
--- a/src/backend/libpq/auth.c
+++ b/src/backend/libpq/auth.c
@@ -865,7 +865,7 @@ CheckSCRAMAuth(Port *port, char *shadow_pass, char **logdetail)
StringInfoData sasl_mechs;
int mtype;
StringInfoData buf;
- void *scram_opaq;
+ void *scram_opaq = NULL;
char *output = NULL;
int outputlen = 0;
char *input;