0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-29 08:39:42 +08:00

Merge pull request #931 from Dahko/patch-1

Fixed wrong assert in zmq_recv
This commit is contained in:
Richard Newton 2014-03-17 13:48:32 +00:00
commit b31ea51ca0

View File

@ -44,8 +44,8 @@ EXAMPLE
zmq_msg_t msg;
rc = zmq_msg_init (&msg);
assert (rc == 0);
rc = zmq_recv (socket, &msg, 0);
assert (rc == 0);
int nbytes = zmq_recv (socket, &msg, 0);
assert (nbytes != -1);
----