diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pager.c | 2 | ||||
-rw-r--r-- | src/wal.c | 2 |
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 */ @@ -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)); |