0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-28 16:15:23 +08:00

Copy instead of reference to a vector that gets reallocated.

This commit is contained in:
Douglas Cuthbertson 2016-06-16 14:41:45 -04:00 committed by Sam Bisbee
parent 6aa581980a
commit 4019112a82

View File

@ -312,7 +312,7 @@ void zmq::select_t::loop ()
// Size is cached to avoid iteration through recently added descriptors.
for (fd_entries_t::size_type i = 0, size = family_entry.fd_entries.size (); i < size && rc > 0; ++i) {
fd_entry_t& fd_entry = family_entry.fd_entries [i];
fd_entry_t fd_entry = family_entry.fd_entries [i];
if (fd_entry.fd == retired_fd)
continue;