mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-22 10:25:52 +01:00
commit
9b2700cad2
@ -189,6 +189,7 @@ void zmq::xpub_t::send_unsubscription (unsigned char *data_, size_t size_,
|
|||||||
// to be retrived by the user later on.
|
// to be retrived by the user later on.
|
||||||
blob_t unsub (size_ + 1, 0);
|
blob_t unsub (size_ + 1, 0);
|
||||||
unsub [0] = 0;
|
unsub [0] = 0;
|
||||||
|
if (size_ > 0)
|
||||||
memcpy (&unsub [1], data_, size_);
|
memcpy (&unsub [1], data_, size_);
|
||||||
self->pending_data.push_back (unsub);
|
self->pending_data.push_back (unsub);
|
||||||
self->pending_flags.push_back (0);
|
self->pending_flags.push_back (0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user