1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Replace always-true condition with assertion (CVS 4970)

FossilOrigin-Name: be7f3240c21c01509263005af2ccc3d7626fe729
This commit is contained in:
mlcreech
2008-04-08 03:09:22 +00:00
parent 1f045330c0
commit 4003298ba2
3 changed files with 10 additions and 11 deletions

View File

@@ -180,10 +180,9 @@ int sqlite3OsOpenMalloc(
}
int sqlite3OsCloseFree(sqlite3_file *pFile){
int rc = SQLITE_OK;
if( pFile ){
rc = sqlite3OsClose(pFile);
sqlite3_free(pFile);
}
assert( pFile );
rc = sqlite3OsClose(pFile);
sqlite3_free(pFile);
return rc;
}