apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject cvs commit: apr/test testfileinfo.c
Date Sat, 23 Nov 2002 12:37:12 GMT
jorton      2002/11/23 04:37:12

  Modified:    test     testfileinfo.c
  Log:
  Fix test_stat function; don't call apr_file_close on a dangling pointer.
  
  Revision  Changes    Path
  1.2       +0 -2      apr/test/testfileinfo.c
  
  Index: testfileinfo.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testfileinfo.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- testfileinfo.c	22 Nov 2002 06:19:24 -0000	1.1
  +++ testfileinfo.c	23 Nov 2002 12:37:12 -0000	1.2
  @@ -136,7 +136,6 @@
   
   static void test_stat(CuTest *tc)
   {
  -    apr_file_t *thefile;
       apr_finfo_t finfo;
       apr_status_t rv;
   
  @@ -153,7 +152,6 @@
           CuFail(tc, str);
       }
       CuAssertIntEquals(tc, APR_SUCCESS, rv);
  -    apr_file_close(thefile);
   }
   
   static void test_stat_eq_finfo(CuTest *tc)
  
  
  

Mime
View raw message