From 7ed1db3f4625c4cb873a21c380913433820d50ce Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 24 Aug 2018 10:51:10 -0400 Subject: [PATCH] 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. --- src/backend/libpq/auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/libpq/auth.c b/src/backend/libpq/auth.c index 68bb62d873..8517565535 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; -- 2.40.0