projects
/
users
/
kgrittn
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cca49d
)
Silence compiler warning about uninitialized variable.
author
Andrew Dunstan
<andrew@dunslane.net>
Mon, 25 Jul 2011 23:37:17 +0000
(19:37 -0400)
committer
Andrew Dunstan
<andrew@dunslane.net>
Mon, 25 Jul 2011 23:37:17 +0000
(19:37 -0400)
It is set correctly on the only path that uses it, but the
compiler can't know that.
src/backend/port/win32_latch.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/port/win32_latch.c
b/src/backend/port/win32_latch.c
index ef61b0184d16891ad748d258fcd4a550b36e592c..b35441b3bfb61cc9938c23e74a74c5a236ec3a9f 100644
(file)
--- a/
src/backend/port/win32_latch.c
+++ b/
src/backend/port/win32_latch.c
@@
-98,7
+98,7
@@
WaitLatchOrSocket(volatile Latch *latch, int wakeEvents, SOCKET sock,
HANDLE sockevent = WSA_INVALID_EVENT;
int numevents;
int result = 0;
- int pmdeath_eventno;
+ int pmdeath_eventno
= 0
;
long timeout_ms;
Assert(wakeEvents != 0);