Skip to content

Commit

Permalink
* buckets/apr_buckets_refcount.c (apr_bucket_shared_copy):
Browse files Browse the repository at this point in the history
  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
  • Loading branch information
notroj committed Aug 29, 2019
1 parent 5514d03 commit ea4a9ea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions buckets/apr_buckets_refcount.c
Expand Up @@ -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)
Expand Down

0 comments on commit ea4a9ea

Please sign in to comment.