From da4539dc749c3d29c03de9b3130f1c9a7266be9d Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Tue, 9 Sep 2014 04:36:31 -0400 Subject: misc: Fix a number of unitialised variables and members Static analysis unearther a bunch of uninitialised variables and members, and this patch addresses the problem. In all cases these omissions seem benign in the end, but at least fixing them means less false positives next time round. --- src/base/pollevent.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/base/pollevent.cc') diff --git a/src/base/pollevent.cc b/src/base/pollevent.cc index 9ed6df4fe..fb28d63d6 100644 --- a/src/base/pollevent.cc +++ b/src/base/pollevent.cc @@ -57,6 +57,7 @@ PollEvent::PollEvent(int _fd, int _events) { pfd.fd = _fd; pfd.events = _events; + pfd.revents = 0; } PollEvent::~PollEvent() -- cgit v1.2.3