From: Tom Lane Date: Wed, 26 Apr 2017 18:01:26 +0000 (-0400) Subject: Silence compiler warning induced by commit de4389712. X-Git-Tag: REL_10_BETA1~160 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=49da00677dc25d83be44372918e21a405863ace2;p=thirdparty%2Fpostgresql.git Silence compiler warning induced by commit de4389712. Smarter compilers can see that "slot" can't be used uninitialized, but some popular ones cannot. Noted by Jeff Janes. --- diff --git a/src/backend/replication/logical/launcher.c b/src/backend/replication/logical/launcher.c index 965b898ee50..549b612e9ae 100644 --- a/src/backend/replication/logical/launcher.c +++ b/src/backend/replication/logical/launcher.c @@ -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;