Fix gcc >= 10 warning
authorAlexander Korotkov <[email protected]>
Thu, 8 Feb 2024 19:59:28 +0000 (21:59 +0200)
committerAlexander Korotkov <[email protected]>
Thu, 8 Feb 2024 19:59:28 +0000 (21:59 +0200)
Reported-by: Bharath Rupireddy
Discussion: https://postgr.es/m/CALj2ACVQoFXxFm2kCmhHcdM7DjA84_bOjoM8HVAKHbE%2BKrZ1uA%40mail.gmail.com

src/backend/commands/dbcommands.c

index 41ed2d3bd9b45a1f828aaccf01e806127ce2d346..b1327de71e846ed8159ada17dec3778a1491f40c 100644 (file)
@@ -680,7 +680,7 @@ createdb(ParseState *pstate, const CreatedbStmt *stmt)
    char        src_locprovider = '\0';
    char       *src_collversion = NULL;
    bool        src_istemplate;
-   bool        src_hasloginevt;
+   bool        src_hasloginevt = false;
    bool        src_allowconn;
    TransactionId src_frozenxid = InvalidTransactionId;
    MultiXactId src_minmxid = InvalidMultiXactId;