apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: apr/file_io/os2 open.c
Date Sun, 02 Mar 2003 03:11:23 GMT
bjh         2003/03/01 19:11:22

  Modified:    file_io/os2 open.c
  Log:
  OS/2: Don't return the apr_file_t if the open failed.
  This is consistent with the other platforms & is required to pass the file tests.
  
  Revision  Changes    Path
  1.59      +2 -1      apr/file_io/os2/open.c
  
  Index: open.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/os2/open.c,v
  retrieving revision 1.58
  retrieving revision 1.59
  diff -u -r1.58 -r1.59
  --- open.c	7 Jan 2003 00:52:51 -0000	1.58
  +++ open.c	2 Mar 2003 03:11:22 -0000	1.59
  @@ -76,7 +76,6 @@
       ULONG action;
       apr_file_t *dafile = (apr_file_t *)apr_palloc(pool, sizeof(apr_file_t));
   
  -    *new = dafile;
       dafile->pool = pool;
       dafile->isopen = FALSE;
       dafile->eof_hit = FALSE;
  @@ -148,6 +147,8 @@
       if (!(flag & APR_FILE_NOCLEANUP)) { 
           apr_pool_cleanup_register(dafile->pool, dafile, apr_file_cleanup, apr_file_cleanup);
       }
  +
  +    *new = dafile;
       return APR_SUCCESS;
   }
   
  
  
  

Mime
View raw message