* 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
diff --git a/buckets/apr_buckets_refcount.c b/buckets/apr_buckets_refcount.c
index b1b5789..0e40fb1 100644
--- a/buckets/apr_buckets_refcount.c
+++ b/buckets/apr_buckets_refcount.c
@@ -35,10 +35,9 @@
 {
     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)