Commit 6d35e82d authored by Martin Lucina's avatar Martin Lucina

Fix uninitialized use of nbytes in signaler fix

parent 16b43e65
...@@ -178,7 +178,7 @@ void zmq::signaler_t::send (const command_t &cmd_) ...@@ -178,7 +178,7 @@ void zmq::signaler_t::send (const command_t &cmd_)
{ {
ssize_t nbytes; ssize_t nbytes;
do { do {
::send (w, &cmd_, sizeof (command_t), 0); nbytes = ::send (w, &cmd_, sizeof (command_t), 0);
} while (nbytes == -1 && errno == EINTR); } while (nbytes == -1 && errno == EINTR);
errno_assert (nbytes != -1); errno_assert (nbytes != -1);
zmq_assert (nbytes == sizeof (command_t)); zmq_assert (nbytes == sizeof (command_t));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment