summaryrefslogtreecommitdiff
path: root/src/mongo
diff options
context:
space:
mode:
authorJonathan Reams <jbreams@mongodb.com>2018-03-14 17:28:12 -0400
committerJonathan Reams <jbreams@mongodb.com>2018-03-26 13:06:52 -0400
commit9b6bcfd63f9413caaa2fdd12e9dedb712ca66913 (patch)
treec2820700ec2cfcfb347e2706f2e2a6f120aa7126 /src/mongo
parent36148ad8bbdb94162b2926f4700d935ee4dc5994 (diff)
downloadmongo-9b6bcfd63f9413caaa2fdd12e9dedb712ca66913.tar.gz
SERVER-33654 Make sure pollfd has an initializer
Diffstat (limited to 'src/mongo')
-rw-r--r--src/mongo/transport/asio_utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/transport/asio_utils.h b/src/mongo/transport/asio_utils.h
index 18aec81f6f6..8f29b709fda 100644
--- a/src/mongo/transport/asio_utils.h
+++ b/src/mongo/transport/asio_utils.h
@@ -129,7 +129,7 @@ StatusWith<EventsMask> pollASIOSocket(Socket& socket, EventsMask mask, Milliseco
int revents = (FD_ISSET(fd, &readfds) ? POLLIN : 0) | (FD_ISSET(fd, &writefds) ? POLLOUT : 0) |
(FD_ISSET(fd, &errfds) ? POLLERR : 0);
#else
- pollfd pollItem;
+ pollfd pollItem = {};
pollItem.fd = socket.native_handle();
pollItem.events = mask;