]> granicus.if.org Git - postgresql/commitdiff
Silence compiler warning about uninitialized variable.
authorAndrew Dunstan <andrew@dunslane.net>
Mon, 25 Jul 2011 23:37:17 +0000 (19:37 -0400)
committerAndrew 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

index ef61b0184d16891ad748d258fcd4a550b36e592c..b35441b3bfb61cc9938c23e74a74c5a236ec3a9f 100644 (file)
@@ -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);