minor fixes

This commit is contained in:
Martin Sustrik
2009-12-21 20:45:52 +01:00
parent 5a0674dfec
commit 7cf18a2aec
2 changed files with 2 additions and 6 deletions

View File

@@ -191,8 +191,8 @@ zmq::socket_base_t *zmq::app_thread_t::create_socket (int type_)
s = new (std::nothrow) downstream_t (this);
break;
default:
// TODO: This should be EINVAL.
zmq_assert (false);
errno = EINVAL;
return NULL;
}
zmq_assert (s);