mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Minor changes to make it easier for static analyzers to reason about the code.
FossilOrigin-Name: ba4104aa02625b51113978c1bb540b75bd88cb1959c7e9bfb4113db4159df5d4
This commit is contained in:
3
src/os.c
3
src/os.c
@@ -316,12 +316,15 @@ int sqlite3OsOpenMalloc(
|
||||
rc = sqlite3OsOpen(pVfs, zFile, pFile, flags, pOutFlags);
|
||||
if( rc!=SQLITE_OK ){
|
||||
sqlite3_free(pFile);
|
||||
*ppFile = 0;
|
||||
}else{
|
||||
*ppFile = pFile;
|
||||
}
|
||||
}else{
|
||||
*ppFile = 0;
|
||||
rc = SQLITE_NOMEM_BKPT;
|
||||
}
|
||||
assert( *ppFile!=0 || rc!=SQLITE_OK );
|
||||
return rc;
|
||||
}
|
||||
void sqlite3OsCloseFree(sqlite3_file *pFile){
|
||||
|
Reference in New Issue
Block a user