mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-09 15:26:04 +00:00
asserts for invalid indexes in pipe reader & writer added
This commit is contained in:
parent
e0d1294c4b
commit
29c5930d0b
@ -68,6 +68,7 @@ void zmq::reader_t::set_index (int index_)
|
||||
|
||||
int zmq::reader_t::get_index ()
|
||||
{
|
||||
zmq_assert (index != -1);
|
||||
return index;
|
||||
}
|
||||
|
||||
@ -112,6 +113,7 @@ void zmq::writer_t::set_index (int index_)
|
||||
|
||||
int zmq::writer_t::get_index ()
|
||||
{
|
||||
zmq_assert (index != -1);
|
||||
return index;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user