summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Lucina <mato@kotelna.sk>2010-08-06 12:00:57 +0200
committerMartin Lucina <mato@kotelna.sk>2010-08-06 12:00:57 +0200
commit6d35e82db4178b936b33c2eaa6a9f4a2b597e2f3 (patch)
tree75614a23df13d1c88e84d73749c8a80cd80f0f75
parent16b43e657b44902b3b45fbb01228c813cf27ad39 (diff)
Fix uninitialized use of nbytes in signaler fix
-rw-r--r--src/signaler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/signaler.cpp b/src/signaler.cpp
index b2055bf..d65957e 100644
--- a/src/signaler.cpp
+++ b/src/signaler.cpp
@@ -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));