mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 18:40:27 +01:00
Fix uninitialized use of nbytes in signaler fix
This commit is contained in:
parent
16b43e657b
commit
6d35e82db4
@ -178,7 +178,7 @@ void zmq::signaler_t::send (const command_t &cmd_)
|
||||
{
|
||||
ssize_t nbytes;
|
||||
do {
|
||||
::send (w, &cmd_, sizeof (command_t), 0);
|
||||
nbytes = ::send (w, &cmd_, sizeof (command_t), 0);
|
||||
} while (nbytes == -1 && errno == EINTR);
|
||||
errno_assert (nbytes != -1);
|
||||
zmq_assert (nbytes == sizeof (command_t));
|
||||
|
Loading…
Reference in New Issue
Block a user