apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject cvs commit: apr/file_io/unix filepath_util.c
Date Wed, 12 Feb 2003 22:28:12 GMT
bnicholes    2003/02/12 14:28:12

  Modified:    file_io/unix filepath_util.c
  Log:
  CodeWarrior compiler can't handle initializing an array element with a variable
  
  Revision  Changes    Path
  1.2       +2 -1      apr/file_io/unix/filepath_util.c
  
  Index: filepath_util.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/unix/filepath_util.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- filepath_util.c	12 Feb 2003 20:20:56 -0000	1.1
  +++ filepath_util.c	12 Feb 2003 22:28:12 -0000	1.2
  @@ -69,10 +69,11 @@
                                             apr_pool_t *p)
   {
       char *path, *part, *ptr;
  -    char separator_string[2] = { separator, '\0' };
  +    char separator_string[2] = { '\0', '\0' };
       apr_array_header_t *elts;
       int nelts;
   
  +    separator_string[0] = separator;
       /* Count the number of path elements. We know there'll be at least
          one even if path is an empty string. */
       path = apr_pstrdup(p, liststr);
  
  
  

Mime
View raw message