diff options
author | Joe Orton <jorton@apache.org> | 2019-08-29 10:39:59 +0000 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2019-08-29 10:39:59 +0000 |
commit | b9cf94c8f9306e0fd33ba07db531b66e0c6abbaa (patch) | |
tree | e011552364847db32d73320eb33f17f4c791d08e /buckets | |
parent | 4652187ac662508908a05490fc590ea7c7d9f8fc (diff) | |
download | apr-b9cf94c8f9306e0fd33ba07db531b66e0c6abbaa.tar.gz |
* 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
Diffstat (limited to 'buckets')
-rw-r--r-- | buckets/apr_buckets_refcount.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/buckets/apr_buckets_refcount.c b/buckets/apr_buckets_refcount.c index b1b57897b..0e40fb1cf 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) |