Commit 3eaae8b2 authored by Ian Barber's avatar Ian Barber

Merge pull request #298 from pieterh/master

Fixed issue (unknown) on zmq_init(-1)
parents cecc790c eb8217bb
...@@ -210,9 +210,13 @@ int zmq_ctx_get (void *ctx_, int option_) ...@@ -210,9 +210,13 @@ int zmq_ctx_get (void *ctx_, int option_)
void *zmq_init (int io_threads_) void *zmq_init (int io_threads_)
{ {
void *ctx = zmq_ctx_new (); if (io_threads_ >= 0) {
zmq_ctx_set (ctx, ZMQ_IO_THREADS, io_threads_); void *ctx = zmq_ctx_new ();
return ctx; zmq_ctx_set (ctx, ZMQ_IO_THREADS, io_threads_);
return ctx;
}
errno = EINVAL;
return NULL;
} }
int zmq_term (void *ctx_) int zmq_term (void *ctx_)
......
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