Initialize variable to placate compiler.
authorRobert Haas <[email protected]>
Mon, 25 Oct 2021 20:30:12 +0000 (16:30 -0400)
committerRobert Haas <[email protected]>
Mon, 25 Oct 2021 20:31:00 +0000 (16:31 -0400)
Per Nathan Bossart.

Discussion: http://postgr.es/m/FECEE7FC-CB74-45A9-BB24-89FEE52A9585@amazon.com

src/backend/access/transam/xlog.c

index cd553d6e12f5b20813160df90bcd8cc088064827..f547efd2944172ea7c2258006dfa5436d0088e7d 100644 (file)
@@ -9038,7 +9038,7 @@ CreateCheckPoint(int flags)
        XLogRecPtr      last_important_lsn;
        VirtualTransactionId *vxids;
        int                     nvxids;
-       int                     oldXLogAllowed;
+       int                     oldXLogAllowed = 0;
 
        /*
         * An end-of-recovery checkpoint is really a shutdown checkpoint, just