[zeromq-dev] zmq_msg_copy() of empty message returns EINVAL

Thomas Rodgers rodgert at twrodgers.com
Wed Jul 2 20:22:26 CEST 2014


Just curious what the rationale for this is?  The result of least
astonishment (to me anyway) would be a copy of an empty message.

zmq_msg_t a;
zmq_msg_init(&a);

...

zmq_msg_t b;
int rc = zmq_msg_copy(&b, &a);
assert(rc == 0);  // fails, errno=EINVAL
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20140702/f861b47a/attachment.htm>


More information about the zeromq-dev mailing list