diff options
author | Brian Havard <bjh@apache.org> | 2004-02-28 01:40:44 +0000 |
---|---|---|
committer | Brian Havard <bjh@apache.org> | 2004-02-28 01:40:44 +0000 |
commit | 4e1028e2384ae6a1ee62a15fab195c4d0c2bdff6 (patch) | |
tree | 88c54d7f95801bc0d9380b08e8cef27d02cdf867 /poll/os2 | |
parent | 4ec4a6a4e7b02ae0bfb418c9cdd42357780030d8 (diff) | |
download | apr-4e1028e2384ae6a1ee62a15fab195c4d0c2bdff6.tar.gz |
OS/2: In apr_pollset_poll(), allow descriptors to be NULL.
This makes it consistent with the unix implementation.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64929 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poll/os2')
-rw-r--r-- | poll/os2/pollset.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/poll/os2/pollset.c b/poll/os2/pollset.c index 4c054c496..f6722182b 100644 --- a/poll/os2/pollset.c +++ b/poll/os2/pollset.c @@ -214,6 +214,9 @@ APR_DECLARE(apr_status_t) apr_pollset_poll(apr_pollset_t *pollset, } } - *descriptors = pollset->result_set; + if (descriptors) { + *descriptors = pollset->result_set; + } + return APR_SUCCESS; } |