1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-27 22:56:53 +03:00

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.
This commit is contained in:
Tom Lane 2018-08-24 10:51:10 -04:00
parent db72302b0a
commit b0c5da615e

View File

@ -865,7 +865,7 @@ CheckSCRAMAuth(Port *port, char *shadow_pass, char **logdetail)
StringInfoData sasl_mechs; StringInfoData sasl_mechs;
int mtype; int mtype;
StringInfoData buf; StringInfoData buf;
void *scram_opaq; void *scram_opaq = NULL;
char *output = NULL; char *output = NULL;
int outputlen = 0; int outputlen = 0;
char *input; char *input;