Commit 2120f6ac authored by Simon Giesecke's avatar Simon Giesecke

Problem: ypipe_t::read is called with NULL argument

Solution: call check_read instead
parent 440d4281
......@@ -36,7 +36,7 @@ zmq::mailbox_t::mailbox_t ()
// Get the pipe into passive state. That way, if the users starts by
// polling on the associated file descriptor it will get woken up when
// new command is posted.
const bool ok = cpipe.read (NULL);
const bool ok = cpipe.check_read ();
zmq_assert (!ok);
active = false;
}
......
......@@ -37,7 +37,7 @@ zmq::mailbox_safe_t::mailbox_safe_t (mutex_t *sync_) : sync (sync_)
// Get the pipe into passive state. That way, if the users starts by
// polling on the associated file descriptor it will get woken up when
// new command is posted.
const bool ok = cpipe.read (NULL);
const bool ok = cpipe.check_read ();
zmq_assert (!ok);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment