summaryrefslogtreecommitdiff
path: root/threadproc/unix
diff options
context:
space:
mode:
authorylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68>2022-02-08 19:26:16 +0000
committerylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68>2022-02-08 19:26:16 +0000
commit87866dd01bdd3d314bdcdfa9a4ddacd671e40150 (patch)
tree7995a6379e24f3fec43c63886baca0123d834e78 /threadproc/unix
parent5edee57c3f32494d0f67156fc747856c1974bcfe (diff)
downloadlibapr-87866dd01bdd3d314bdcdfa9a4ddacd671e40150.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. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1897879 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc/unix')
-rw-r--r--threadproc/unix/thread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/threadproc/unix/thread.c b/threadproc/unix/thread.c
index 78b803727..209fe7c86 100644
--- a/threadproc/unix/thread.c
+++ b/threadproc/unix/thread.c
@@ -249,6 +249,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;
}