httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject cvs commit: httpd-2.0/modules/experimental mod_filter.c
Date Sun, 17 Oct 2004 16:00:02 GMT
nd          2004/10/17 09:00:02

  Modified:    modules/experimental mod_filter.c
  Log:
  style
  
  Revision  Changes    Path
  1.14      +4 -4      httpd-2.0/modules/experimental/mod_filter.c
  
  Index: mod_filter.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/experimental/mod_filter.c,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -u -r1.13 -r1.14
  --- mod_filter.c	17 Oct 2004 15:44:21 -0000	1.13
  +++ mod_filter.c	17 Oct 2004 16:00:02 -0000	1.14
  @@ -82,21 +82,21 @@
   static int filter_init(ap_filter_t *f)
   {
       ap_filter_provider_t *p;
  -    int err = OK;
  +    int err;
       ap_filter_rec_t *filter = f->frec;
   
       f->ctx = apr_pcalloc(f->r->pool, sizeof(harness_ctx));
       for (p = filter->providers; p; p = p->next) {
           if (p->frec->filter_init_func) {
  -            if (err = p->frec->filter_init_func(f), err != OK) {
  +            if ((err = p->frec->filter_init_func(f)) != OK) {
                   ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, f->r,
                                 "filter_init for %s failed", p->frec->name);
  -                break;        /* if anyone errors out here, so do we */
  +                return err;   /* if anyone errors out here, so do we */
               }
           }
       }
   
  -    return err;
  +    return OK;
   }
   
   static ap_out_filter_func filter_lookup(request_rec *r, ap_filter_rec_t *filter)
  
  
  

Mime
View raw message