apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr/file_io/unix filedup.c
Date Wed, 19 Mar 2003 02:16:37 GMT
wrowe       2003/03/18 18:16:37

  Modified:    file_io/unix filedup.c
  Log:
    apr_p[c]alloc always succeeds, exit()s or calls the user defined callback.
    APR_ENOMEM checks are noops.
  
  Revision  Changes    Path
  1.56      +0 -3      apr/file_io/unix/filedup.c
  
  Index: filedup.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/unix/filedup.c,v
  retrieving revision 1.55
  retrieving revision 1.56
  diff -u -r1.55 -r1.56
  --- filedup.c	19 Mar 2003 02:14:36 -0000	1.55
  +++ filedup.c	19 Mar 2003 02:16:37 -0000	1.56
  @@ -87,9 +87,6 @@
       
       if (which_dup == 1) {
           (*new_file) = (apr_file_t *)apr_pcalloc(p, sizeof(apr_file_t));
  -        if ((*new_file) == NULL) {
  -            return APR_ENOMEM;
  -        }
           (*new_file)->pool = p;
           (*new_file)->filedes = rv;
       }
  
  
  

Mime
View raw message