diff options
| -rw-r--r-- | src/pair.cpp | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pair.cpp b/src/pair.cpp index 31524de..3872b28 100644 --- a/src/pair.cpp +++ b/src/pair.cpp @@ -115,6 +115,9 @@ int zmq::pair_t::xrecv (zmq_msg_t *msg_, int flags_)      zmq_msg_close (msg_);      if (!alive || !inpipe || !inpipe->read (msg_)) { +        //  No message is available. Initialise the output parameter +        //  to be a 0-byte message. +        zmq_msg_init (msg_);          errno = EAGAIN;          return -1;      }  | 
