From ea4a9ea7c715e1f6ea233a4c4f60e2d5df8321f4 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Thu, 29 Aug 2019 10:39:59 +0000 Subject: [PATCH] * buckets/apr_buckets_refcount.c (apr_bucket_shared_copy): Simplify code, allowing tail-call optimization, no functional change. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1866064 13f79535-47bb-0310-9956-ffa450edef68 --- buckets/apr_buckets_refcount.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/buckets/apr_buckets_refcount.c b/buckets/apr_buckets_refcount.c index b1b57897bce..0e40fb1cfb3 100644 --- a/buckets/apr_buckets_refcount.c +++ b/buckets/apr_buckets_refcount.c @@ -35,10 +35,9 @@ APR_DECLARE_NONSTD(apr_status_t) apr_bucket_shared_copy(apr_bucket *a, { apr_bucket_refcount *r = a->data; - apr_bucket_simple_copy(a, b); r->refcount++; - return APR_SUCCESS; + return apr_bucket_simple_copy(a, b); } APR_DECLARE(int) apr_bucket_shared_destroy(void *data)