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

Fix an uninitialized variable in the pager. Tickets #208 and #206.

Bug introduced by check-in (795). (CVS 804)

FossilOrigin-Name: f3dc686e0258a9588e1433a89ac46795f76beeae
This commit is contained in:
drh
2002-12-28 01:06:30 +00:00
parent 5d1f0d4c89
commit 80eb79055e
3 changed files with 9 additions and 9 deletions

View File

@@ -18,7 +18,7 @@
** file simultaneously, or one process from reading the database while
** another is writing.
**
** @(#) $Id: pager.c,v 1.61 2002/12/07 21:45:14 drh Exp $
** @(#) $Id: pager.c,v 1.62 2002/12/28 01:06:30 drh Exp $
*/
#include "os.h" /* Must be first to enable large file support */
#include "sqliteInt.h"
@@ -829,7 +829,7 @@ int sqlitepager_ref(void *pData){
*/
static int syncAllPages(Pager *pPager){
PgHdr *pPg;
Pgno lastPgno;
Pgno lastPgno = 0;
int rc = SQLITE_OK;
/* Sync the journal before modifying the main database