apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: apr-iconv/lib iconv_module.c
Date Mon, 17 Feb 2003 03:49:35 GMT
brane       2003/02/16 19:49:35

  Modified:    lib      iconv_module.c
  Log:
  Use the new apr_env_get function instead of getenv.
  
  Revision  Changes    Path
  1.14      +2 -4      apr-iconv/lib/iconv_module.c
  
  Index: iconv_module.c
  ===================================================================
  RCS file: /home/cvs/apr-iconv/lib/iconv_module.c,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- iconv_module.c	12 Feb 2003 23:39:19 -0000	1.13
  +++ iconv_module.c	17 Feb 2003 03:49:35 -0000	1.14
  @@ -35,6 +35,7 @@
   #include "apr_file_info.h"
   #include "apr_pools.h"
   #include "apr_dso.h"
  +#include "apr_env.h"
   #include "apr_strings.h"
   #include "apr_tables.h"
   #include "apr_lib.h"
  @@ -92,10 +93,7 @@
           while (0 != (*ptr++ = apr_tolower(*name++)))
               ;
   
  -        /* FIXME: Should use apr_env_get instead, to get correct path
  -                  encoding on Windows. */
  -        ptr = getenv("APR_ICONV_PATH");
  -        if (ptr != NULL
  +        if (!apr_env_get(&ptr, "APR_ICONV_PATH", subpool)
               && !apr_filepath_list_split(&pathelts, ptr, subpool))
           {
               int i;
  
  
  

Mime
View raw message