apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stodd...@apache.org
Subject cvs commit: apr-util/buckets apr_buckets_file.c
Date Wed, 27 Jun 2001 15:56:08 GMT
stoddard    01/06/27 08:56:08

  Modified:    buckets  apr_buckets_file.c
  Log:
  Keep apr_file_dup() from being called with garbage in the fd pointer.
  
  Revision  Changes    Path
  1.47      +1 -1      apr-util/buckets/apr_buckets_file.c
  
  Index: apr_buckets_file.c
  ===================================================================
  RCS file: /home/cvs/apr-util/buckets/apr_buckets_file.c,v
  retrieving revision 1.46
  retrieving revision 1.47
  diff -u -r1.46 -r1.47
  --- apr_buckets_file.c	2001/06/19 18:48:25	1.46
  +++ apr_buckets_file.c	2001/06/27 15:56:06	1.47
  @@ -213,7 +213,7 @@
   static apr_status_t file_setaside(apr_bucket *data, apr_pool_t *reqpool)
   {
       apr_bucket_file *a = data->data;
  -    apr_file_t *fd;
  +    apr_file_t *fd = NULL;
       apr_file_t *f = a->fd;
       apr_pool_t *curpool = apr_file_pool_get(f);
   #if APR_HAS_MMAP
  
  
  

Mime
View raw message