sunos/gcc3 compilation issue fixed

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
Martin Sustrik
2011-01-03 20:50:24 +01:00
parent 51d2d9b9f8
commit 95eebbfffa

View File

@@ -50,7 +50,7 @@ int zmq::sub_t::xsetsockopt (int option_, const void *optval_,
memcpy (data + 1, optval_, optvallen_);
// Pass it further on in the stack.
int err;
int err = 0;
int rc = xsend (&msg, 0);
if (rc != 0)
err = errno;