Initialise a variable correctly.
authorPavan Deolasee <[email protected]>
Wed, 12 Sep 2018 09:15:55 +0000 (14:45 +0530)
committerPavan Deolasee <[email protected]>
Wed, 12 Sep 2018 09:15:55 +0000 (14:45 +0530)
This was leading to unexpected/unexplained crashes in the cluster monitor
process. Per reprot by Hengbing

src/backend/postmaster/clustermon.c

index e15a0d788b48f43f70055922f22e73052a256a4c..34f571c03bf3929c2dc948d660415f3b1014562e 100644 (file)
@@ -197,7 +197,7 @@ ClusterMonitorInit(void)
        while (!got_SIGTERM)
        {
                struct timeval nap;
-               int                     rc;
+               int                     rc = 0;
 
                /*
                 * While booting up, aggressively try to report Xmin and fetch global