You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl-cvs@perl.apache.org by do...@apache.org on 2002/06/04 18:16:51 UTC

cvs commit: modperl-2.0/src/modules/perl mod_perl.c

dougm       2002/06/04 09:16:51

  Modified:    src/modules/perl mod_perl.c
  Log:
  need to copy "MODPERL2" for the ap_server_config_defines
  
  Revision  Changes    Path
  1.122     +2 -1      modperl-2.0/src/modules/perl/mod_perl.c
  
  Index: mod_perl.c
  ===================================================================
  RCS file: /home/cvs/modperl-2.0/src/modules/perl/mod_perl.c,v
  retrieving revision 1.121
  retrieving revision 1.122
  diff -u -r1.121 -r1.122
  --- mod_perl.c	3 Jun 2002 23:41:18 -0000	1.121
  +++ mod_perl.c	4 Jun 2002 16:16:50 -0000	1.122
  @@ -426,7 +426,8 @@
                               apr_pool_t *ptemp)
   {
       /* for <IfDefine MODPERL2> and Apache->define("MODPERL2") */
  -    *(char **)apr_array_push(ap_server_config_defines) = "MODPERL2";
  +    *(char **)apr_array_push(ap_server_config_defines) =
  +        apr_pstrdup(p, "MODPERL2");
   
       /* XXX: htf can we have PerlPreConfigHandler
        * without first configuring mod_perl ?