summaryrefslogtreecommitdiff
path: root/src/zmq.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zmq.cpp')
-rw-r--r--src/zmq.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zmq.cpp b/src/zmq.cpp
index 3497fe1..d523036 100644
--- a/src/zmq.cpp
+++ b/src/zmq.cpp
@@ -208,8 +208,8 @@ void *zmq_init (int app_threads_, int io_threads_, int flags_)
return NULL;
}
- zmq::dispatcher_t *dispatcher = new zmq::dispatcher_t (app_threads_,
- io_threads_, flags_);
+ zmq::dispatcher_t *dispatcher = new (std::nothrow) zmq::dispatcher_t (
+ app_threads_, io_threads_, flags_);
zmq_assert (dispatcher);
return (void*) dispatcher;
}