Bug 1250115 - initialized pollInterval with 0 in order to prevent garbage value if Poll(..) doesn't get called. r=dragana

MozReview-Commit-ID: HoMv3sBg74W
This commit is contained in:
Bogdan Postelnicu 2016-02-24 13:47:18 +02:00
parent 5f2eb05976
commit c2a2694b10

View File

@ -1067,9 +1067,9 @@ nsSocketTransportService::DoPollIteration(bool wait, TimeDuration *pollDuration)
#endif
// Measures seconds spent while blocked on PR_Poll
uint32_t pollInterval;
uint32_t pollInterval = 0;
int32_t n = 0;
*pollDuration = 0;
#if !defined(MOZILLA_XPCOMRT_API)
if (!gIOService->IsNetTearingDown()) {
// Let's not do polling during shutdown.