Silence compiler warning induced by commit de4389712.
authorTom Lane
Wed, 26 Apr 2017 18:01:26 +0000 (14:01 -0400)
committerTom Lane
Wed, 26 Apr 2017 18:01:26 +0000 (14:01 -0400)
Smarter compilers can see that "slot" can't be used uninitialized,
but some popular ones cannot.  Noted by Jeff Janes.

src/backend/replication/logical/launcher.c

index 965b898ee506aef4eb156f3b9eb6751621fb63f7..549b612e9aeb1128704501c68b2e622ed02814b4 100644 (file)
@@ -254,7 +254,7 @@ logicalrep_worker_launch(Oid dbid, Oid subid, const char *subname, Oid userid,
    BackgroundWorker    bgw;
    BackgroundWorkerHandle *bgw_handle;
    int                 i;
-   int                 slot;
+   int                 slot = 0;
    LogicalRepWorker   *worker = NULL;
    int                 nsyncworkers;
    TimestampTz         now;