Skip to content

Commit ea4a9ea

Browse files
committed
* 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
1 parent 5514d03 commit ea4a9ea

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

buckets/apr_buckets_refcount.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,9 @@ APR_DECLARE_NONSTD(apr_status_t) apr_bucket_shared_copy(apr_bucket *a,
3535
{
3636
apr_bucket_refcount *r = a->data;
3737

38-
apr_bucket_simple_copy(a, b);
3938
r->refcount++;
4039

41-
return APR_SUCCESS;
40+
return apr_bucket_simple_copy(a, b);
4241
}
4342

4443
APR_DECLARE(int) apr_bucket_shared_destroy(void *data)

0 commit comments

Comments
 (0)