projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e315346
)
Silence compiler warning induced by commit de4389712.
author
Tom Lane
Wed, 26 Apr 2017 18:01:26 +0000
(14:01 -0400)
committer
Tom 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
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/replication/logical/launcher.c
b/src/backend/replication/logical/launcher.c
index 965b898ee506aef4eb156f3b9eb6751621fb63f7..549b612e9aeb1128704501c68b2e622ed02814b4 100644
(file)
--- 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;