1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +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

@@ -1,5 +1,5 @@
C Version\s2.7.4\s(CVS\s803) C Fix\san\suninitialized\svariable\sin\sthe\spager.\s\sTickets\s#208\sand\s#206.\r\nBug\sintroduced\sby\scheck-in\s(795).\s(CVS\s804)
D 2002-12-17T22:50:45 D 2002-12-28T01:06:30
F Makefile.in 868c17a1ae1c07603d491274cc8f86c04acf2a1e F Makefile.in 868c17a1ae1c07603d491274cc8f86c04acf2a1e
F Makefile.linux-gcc b86a99c493a5bfb402d1d9178dcdc4bd4b32f906 F Makefile.linux-gcc b86a99c493a5bfb402d1d9178dcdc4bd4b32f906
F README f1de682fbbd94899d50aca13d387d1b3fd3be2dd F README f1de682fbbd94899d50aca13d387d1b3fd3be2dd
@@ -32,7 +32,7 @@ F src/main.c cee05c2ba23b5e78f9671f319dbd68e2130e0f68
F src/md5.c fe4f9c9c6f71dfc26af8da63e4d04489b1430565 F src/md5.c fe4f9c9c6f71dfc26af8da63e4d04489b1430565
F src/os.c 740022806209e44cab0abddfb1fee65c77702e21 F src/os.c 740022806209e44cab0abddfb1fee65c77702e21
F src/os.h 09fd96b4d733aae2f3b98b2ae9ceea40b8fd780d F src/os.h 09fd96b4d733aae2f3b98b2ae9ceea40b8fd780d
F src/pager.c 0cbbde8bc4a16a6fc6b17fb7a08789391baa3d2d F src/pager.c ebc73e7c314e7d8ff6c5728bb96831aaa9efb2e4
F src/pager.h 540833e8cb826b80ce2e39aa917deee5e12db626 F src/pager.h 540833e8cb826b80ce2e39aa917deee5e12db626
F src/parse.y 469c9636ff713e63c00234662209f11668671ae9 F src/parse.y 469c9636ff713e63c00234662209f11668671ae9
F src/printf.c 5c50fc1da75c8f5bf432b1ad17d91d6653acd167 F src/printf.c 5c50fc1da75c8f5bf432b1ad17d91d6653acd167
@@ -152,7 +152,7 @@ F www/speed.tcl a20a792738475b68756ea7a19321600f23d1d803
F www/sqlite.tcl ae3dcfb077e53833b59d4fcc94d8a12c50a44098 F www/sqlite.tcl ae3dcfb077e53833b59d4fcc94d8a12c50a44098
F www/tclsqlite.tcl 1db15abeb446aad0caf0b95b8b9579720e4ea331 F www/tclsqlite.tcl 1db15abeb446aad0caf0b95b8b9579720e4ea331
F www/vdbe.tcl 2013852c27a02a091d39a766bc87cff329f21218 F www/vdbe.tcl 2013852c27a02a091d39a766bc87cff329f21218
P f685ae15b1179baeadfadbaef0a73b001c96fac5 P 0224db6f8ce5e3cecc4432f3966b8f59f80e9303
R ab0c750118000ee7f5cb66111e7ee69b R 0c62da9557063815f4c551cb7e4b7577
U drh U drh
Z e3dee75b0c520f2cf7309d962f724be2 Z 5a6d8c5f4614f1b09023fb1b502e94da

View File

@@ -1 +1 @@
0224db6f8ce5e3cecc4432f3966b8f59f80e9303 f3dc686e0258a9588e1433a89ac46795f76beeae

View File

@@ -18,7 +18,7 @@
** file simultaneously, or one process from reading the database while ** file simultaneously, or one process from reading the database while
** another is writing. ** 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 "os.h" /* Must be first to enable large file support */
#include "sqliteInt.h" #include "sqliteInt.h"
@@ -829,7 +829,7 @@ int sqlitepager_ref(void *pData){
*/ */
static int syncAllPages(Pager *pPager){ static int syncAllPages(Pager *pPager){
PgHdr *pPg; PgHdr *pPg;
Pgno lastPgno; Pgno lastPgno = 0;
int rc = SQLITE_OK; int rc = SQLITE_OK;
/* Sync the journal before modifying the main database /* Sync the journal before modifying the main database