OSDN Git Service

Fix blatantly uninitialized variable in recent commit.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 17 Feb 2011 00:53:20 +0000 (19:53 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 17 Feb 2011 00:53:20 +0000 (19:53 -0500)
Doesn't anybody around here pay attention to compiler warnings?

src/backend/replication/walsender.c

index 0fdf722..a6a7a14 100644 (file)
@@ -565,7 +565,7 @@ ProcessStandbyReplyMessage(void)
        {
                TransactionId   nextXid;
                uint32                  nextEpoch;
-               bool                    epochOK;
+               bool                    epochOK = false;
 
                GetNextXidAndEpoch(&nextXid, &nextEpoch);