perl-modperl-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject cvs commit: modperl-2.0/src/modules/perl modperl_config.c
Date Fri, 28 Sep 2001 20:08:34 GMT
stas        01/09/28 13:08:34

  Modified:    src/modules/perl modperl_config.c
  Log:
  - the empty slot check should be done against the original table. If we
    test against the overlayed table, we will copy only the first value for
    a given key in case there are more than one value for the same key.
    hence s/mrg->item/add->item/ in the check
  
  Revision  Changes    Path
  1.43      +1 -1      modperl-2.0/src/modules/perl/modperl_config.c
  
  Index: modperl_config.c
  ===================================================================
  RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_config.c,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- modperl_config.c	2001/09/28 19:51:40	1.42
  +++ modperl_config.c	2001/09/28 20:08:34	1.43
  @@ -24,7 +24,7 @@
           mrg->item = apr_table_copy(p, add->item); \
           for (i = 0; i < arr->nelts; i++) { \
               char *val; \
  -            if ((val = (char *)apr_table_get(mrg->item, entries[i].key))){ \
  +            if ((val = (char *)apr_table_get(add->item, entries[i].key))){ \
                   continue; \
               } \
               else if ((val = (char *)apr_table_get(base->item, entries[i].key))){ \
  
  
  

Mime
View raw message