From d86f2d15d88f8292c88bffbc8d18fb76543c3793 Mon Sep 17 00:00:00 2001 From: Yann Ylavic Date: Tue, 8 Feb 2022 19:31:20 +0000 Subject: 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 --- threadproc/beos/thread.c | 1 + 1 file changed, 1 insertion(+) (limited to 'threadproc/beos') 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; } -- cgit v1.2.1