httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stodd...@locus.apache.org
Subject cvs commit: apache-2.0/src/ap ap_buckets.c
Date Tue, 03 Oct 2000 17:56:03 GMT
stoddard    00/10/03 10:56:03

  Modified:    src/ap   ap_buckets.c
  Log:
  Return an empty brigade rather than NULL if there is no buckets remaining
  in the brigade to split.
  
  Revision  Changes    Path
  1.20      +9 -5      apache-2.0/src/ap/ap_buckets.c
  
  Index: ap_buckets.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/ap/ap_buckets.c,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- ap_buckets.c	2000/10/03 17:19:29	1.19
  +++ ap_buckets.c	2000/10/03 17:56:02	1.20
  @@ -113,12 +113,16 @@
   {
       ap_bucket_brigade *a;
       ap_bucket *f;
  -    if (e == AP_BRIGADE_SENTINEL(b))
  -        return NULL;
  +
       a = ap_brigade_create(b->p);
  -    f = AP_RING_LAST(&b->list);
  -    AP_RING_UNSPLICE(e, f, link);
  -    AP_RING_SPLICE_HEAD(&a->list, e, f, ap_bucket, link);
  +    /* Return an empty brigade if there is nothing left in 
  +     * the first brigade to split off 
  +     */
  +    if (e != AP_BRIGADE_SENTINEL(b)) {
  +        f = AP_RING_LAST(&b->list);
  +        AP_RING_UNSPLICE(e, f, link);
  +        AP_RING_SPLICE_HEAD(&a->list, e, f, ap_bucket, link);
  +    }
       return a;
   }
   
  
  
  

Mime
View raw message