mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Fix the check-in at [41474548ef3f7454] so that it computes the pointer in
time for error checking at the end of the routine in the case of a non-OOM error. FossilOrigin-Name: 13d2fed760e7d0def573c56b7181f45622b0ed78d61952a6de901f96949d074e
This commit is contained in:
@@ -1 +1 @@
|
|||||||
b412d1d175fde9c6402b6fda7c73ac2db2471f2c9416d5c5073549732dea6d98
|
13d2fed760e7d0def573c56b7181f45622b0ed78d61952a6de901f96949d074e
|
@@ -2497,9 +2497,9 @@ static int pager_delsuper(Pager *pPager, const char *zSuper){
|
|||||||
}else{
|
}else{
|
||||||
const int flags = (SQLITE_OPEN_READONLY|SQLITE_OPEN_SUPER_JOURNAL);
|
const int flags = (SQLITE_OPEN_READONLY|SQLITE_OPEN_SUPER_JOURNAL);
|
||||||
rc = sqlite3OsOpen(pVfs, zSuper, pSuper, flags, 0);
|
rc = sqlite3OsOpen(pVfs, zSuper, pSuper, flags, 0);
|
||||||
|
pJournal = (sqlite3_file *)(((u8 *)pSuper) + pVfs->szOsFile);
|
||||||
}
|
}
|
||||||
if( rc!=SQLITE_OK ) goto delsuper_out;
|
if( rc!=SQLITE_OK ) goto delsuper_out;
|
||||||
pJournal = (sqlite3_file *)(((u8 *)pSuper) + pVfs->szOsFile);
|
|
||||||
|
|
||||||
/* Load the entire super-journal file into space obtained from
|
/* Load the entire super-journal file into space obtained from
|
||||||
** sqlite3_malloc() and pointed to by zSuperJournal. Also obtain
|
** sqlite3_malloc() and pointed to by zSuperJournal. Also obtain
|
||||||
|
Reference in New Issue
Block a user