Silence -Wmaybe-uninitialized compiler warning in dbcommands.c.
authorAndres Freund <andres@anarazel.de>
Sat, 19 Mar 2022 01:48:03 +0000 (18:48 -0700)
committerAndres Freund <andres@anarazel.de>
Sat, 19 Mar 2022 01:48:03 +0000 (18:48 -0700)
Introduced in f2553d43060e. See also 3f6b3be39ca9, which did so for nearby
variables.

Discussion: https://postgr.es/m/20220319014707.kgtomqdzm6m2ulro@alap3.anarazel.de

src/backend/commands/dbcommands.c

index 2e1af642e42753fc1333c5d954f4e20e8551b182..962e11dd8f4bf5bbc72c6244f19d791948e4fb90 100644 (file)
@@ -109,7 +109,7 @@ createdb(ParseState *pstate, const CreatedbStmt *stmt)
    char       *src_collate = NULL;
    char       *src_ctype = NULL;
    char       *src_iculocale = NULL;
-   char        src_locprovider;
+   char        src_locprovider = '\0';
    char       *src_collversion = NULL;
    bool        src_istemplate;
    bool        src_allowconn;