diff --git a/AUTHORS b/AUTHORS index 02565232..1279d7fb 100644 --- a/AUTHORS +++ b/AUTHORS @@ -16,6 +16,7 @@ Erik Rigtorp Frank Denis George Neill Gonzalo Diethelm +Ivo Danihelka Joe Thornber Jon Dyte Kamil Shakirov diff --git a/src/zmq.cpp b/src/zmq.cpp index 8b21d4be..f3ccaacc 100644 --- a/src/zmq.cpp +++ b/src/zmq.cpp @@ -272,13 +272,14 @@ void *zmq_init (int io_threads_) int zmq_term (void *ctx_) { - int rc = ((zmq::ctx_t*) ctx_)->term (); - int en = errno; - if (!ctx_) { errno = EFAULT; return -1; } + + int rc = ((zmq::ctx_t*) ctx_)->term (); + int en = errno; + #if defined ZMQ_HAVE_OPENPGM // Shut down the OpenPGM library. if (pgm_shutdown () != TRUE)