diff options
author | Yann Ylavic <ylavic@apache.org> | 2022-02-08 19:31:20 +0000 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2022-02-08 19:31:20 +0000 |
commit | d86f2d15d88f8292c88bffbc8d18fb76543c3793 (patch) | |
tree | 580c36bedf56394b0943bc5e81d9a15d3d77a367 /threadproc/beos | |
parent | be7b65cb433b84b35eacfa4209e17e271baa9eb1 (diff) | |
download | apr-d86f2d15d88f8292c88bffbc8d18fb76543c3793.tar.gz |
apr_thread: Follow up to r1897207: apr_thread_current_create() compilation.
Fix compilation of apr_thread_current_create() for OS/2 and Windows.
Set *current to NULL on failure.
Merge r1897879 from trunk.
Submitted by: ylavic
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.8.x@1897880 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc/beos')
-rw-r--r-- | threadproc/beos/thread.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/threadproc/beos/thread.c b/threadproc/beos/thread.c index 0ce9638f6..39a5e366c 100644 --- a/threadproc/beos/thread.c +++ b/threadproc/beos/thread.c @@ -172,6 +172,7 @@ APR_DECLARE(apr_status_t) apr_thread_current_create(apr_thread_t **current, stat = alloc_thread(current, attr, NULL, NULL, pool); if (stat != APR_SUCCESS) { + *current = NULL; return stat; } |