aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2010-06-26 20:00:54 +0000
committerdrh <drh@noemail.net>2010-06-26 20:00:54 +0000
commit7d113eb0aba33281db9b8d2204747cd8858a946f (patch)
tree74d53531df756d7167d08e811d82410dcfc5556f /src
parent4013130485691910ccd4835a8556ae772d8889b2 (diff)
downloadsqlite-7d113eb0aba33281db9b8d2204747cd8858a946f.tar.gz
sqlite-7d113eb0aba33281db9b8d2204747cd8858a946f.zip
Suppress a couple uninitialized variable warnings.
FossilOrigin-Name: 29571e228cc85f7768c3ad57d0c7af96b5a54983
Diffstat (limited to 'src')
-rw-r--r--src/pager.c2
-rw-r--r--src/wal.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pager.c b/src/pager.c
index 3f3905627..215049e47 100644
--- a/src/pager.c
+++ b/src/pager.c
@@ -4838,7 +4838,7 @@ int sqlite3PagerWrite(DbPage *pDbPage){
if( nPagePerSector>1 ){
Pgno nPageCount; /* Total number of pages in database file */
Pgno pg1; /* First page of the sector pPg is located on. */
- int nPage; /* Number of pages starting at pg1 to journal */
+ int nPage = 0; /* Number of pages starting at pg1 to journal */
int ii; /* Loop counter */
int needSync = 0; /* True if any page has PGHDR_NEED_SYNC */
diff --git a/src/wal.c b/src/wal.c
index 69b213dd2..d74456fec 100644
--- a/src/wal.c
+++ b/src/wal.c
@@ -1348,7 +1348,7 @@ static void walMergesort(
int nMerge; /* Number of elements in list aMerge */
ht_slot *aMerge; /* List to be merged */
int iList; /* Index into input list */
- int iSub; /* Index into aSub array */
+ int iSub = 0; /* Index into aSub array */
struct Sublist aSub[13]; /* Array of sub-lists */
memset(aSub, 0, sizeof(aSub));