aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2017-04-26 14:01:26 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2017-04-26 14:01:26 -0400
commit49da00677dc25d83be44372918e21a405863ace2 (patch)
treeb33fa39bf934235ff77c253ba2827c735db65f17 /src
parente315346d839ef27f9d5f2584f44de09f08573df2 (diff)
downloadpostgresql-49da00677dc25d83be44372918e21a405863ace2.tar.gz
postgresql-49da00677dc25d83be44372918e21a405863ace2.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/backend/replication/logical/launcher.c2
1 files changed, 1 insertions, 1 deletions
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;