summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pipe.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pipe.cpp b/src/pipe.cpp
index a5a18be..6e590df 100644
--- a/src/pipe.cpp
+++ b/src/pipe.cpp
@@ -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;
}