From f1d6811dd7902a0c2b2ddd4b52c906cdea4395d8 Mon Sep 17 00:00:00 2001 From: Eelis van der Weegen Date: Fri, 22 Feb 2019 19:57:49 +0100 Subject: [PATCH] Problem: The documentation for zmq_poller_new incorrectly states that it cannot fail. Solution: Revise the offending wording, adding a remark that zmq_poller_new will return NULL in case of failure. Fixes #3425. --- doc/zmq_poller.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/zmq_poller.txt b/doc/zmq_poller.txt index 70934f1e..c37a1633 100644 --- a/doc/zmq_poller.txt +++ b/doc/zmq_poller.txt @@ -172,7 +172,7 @@ be called from the same thread. Otherwise, behaviour is undefined. RETURN VALUE ------------ -_zmq_poller_new_ always returns a valid pointer to a poller. +_zmq_poller_new_ returns a valid pointer to a poller, or NULL in case of a failure. All functions that return an int, return -1 in case of a failure. In that case, zmq_errno() can be used to query the type of the error as described below.