Skip to content

Commit c3c301c

Browse files
committed
Initialize stop_socket of StreamCtl struct
1 parent e2ab82f commit c3c301c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/backup.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2022,13 +2022,16 @@ StreamLog(void *arg)
20222022
{
20232023
StreamCtl ctl;
20242024

2025+
MemSet(&ctl, 0, sizeof(ctl));
2026+
20252027
ctl.startpos = startpos;
20262028
ctl.timeline = starttli;
20272029
ctl.sysidentifier = NULL;
20282030

20292031
#if PG_VERSION_NUM >= 100000
20302032
ctl.walmethod = CreateWalDirectoryMethod(basedir, 0, true);
20312033
ctl.replication_slot = replication_slot;
2034+
ctl.stop_socket = PGINVALID_SOCKET;
20322035
#else
20332036
ctl.basedir = basedir;
20342037
#endif

0 commit comments

Comments
 (0)