Skip to content

Commit 74e6d37

Browse files
committed
Silence compiler warning about uninitialized variable.
It is set correctly on the only path that uses it, but the compiler can't know that.
1 parent 8cca49d commit 74e6d37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/port/win32_latch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ WaitLatchOrSocket(volatile Latch *latch, int wakeEvents, SOCKET sock,
9898
HANDLE sockevent = WSA_INVALID_EVENT;
9999
int numevents;
100100
int result = 0;
101-
int pmdeath_eventno;
101+
int pmdeath_eventno = 0;
102102
long timeout_ms;
103103

104104
Assert(wakeEvents != 0);

0 commit comments

Comments
 (0)