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.
This commit is contained in:
Eelis van der Weegen 2019-02-22 19:57:49 +01:00
parent cdc4b8c6c6
commit f1d6811dd7

View File

@ -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.