/ Check-in [be7f3240]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Replace always-true condition with assertion (CVS 4970)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: be7f3240c21c01509263005af2ccc3d7626fe729
User & Date: mlcreech 2008-04-08 03:09:22
Context
2008-04-10
13:20
Fix a bug in the speed4p.test performance testing script. (CVS 4971) check-in: 80311594 user: drh tags: trunk
2008-04-08
03:09
Replace always-true condition with assertion (CVS 4970) check-in: be7f3240 user: mlcreech tags: trunk
03:07
Add test case for empty VFS list (CVS 4969) check-in: 6797814e user: mlcreech tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os.c.

   176    176         *ppFile = pFile;
   177    177       }
   178    178     }
   179    179     return rc;
   180    180   }
   181    181   int sqlite3OsCloseFree(sqlite3_file *pFile){
   182    182     int rc = SQLITE_OK;
   183         -  if( pFile ){
   184         -    rc = sqlite3OsClose(pFile);
   185         -    sqlite3_free(pFile);
   186         -  }
          183  +  assert( pFile );
          184  +  rc = sqlite3OsClose(pFile);
          185  +  sqlite3_free(pFile);
   187    186     return rc;
   188    187   }
   189    188   
   190    189   /*
   191    190   ** The list of all registered VFS implementations.  This list is
   192    191   ** initialized to the single VFS returned by sqlite3OsDefaultVfs()
   193    192   ** upon the first call to sqlite3_vfs_find().