[zeromq-dev] zmq_msg_copy() of empty message returns EINVAL
Pieter Hintjens
ph at imatix.com
Wed Jul 2 20:50:59 CEST 2014
There's no good reason for it. If you like, make a patch and get it to
work as you'd expect.
On Wed, Jul 2, 2014 at 8:22 PM, Thomas Rodgers <rodgert at twrodgers.com> wrote:
> 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
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
More information about the zeromq-dev
mailing list