Initialize variables in the fts5 integrity-check code to avoid compiler warnings.

FossilOrigin-Name: e979e2cccac257ad554803e6a1103558b0f159d8
This commit is contained in:
dan
2015-10-20 15:49:02 +00:00
parent 8789fbb2bd
commit 3f9bfa740f
3 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -914,12 +914,12 @@ int sqlite3Fts5StorageIntegrity(Fts5Storage *p){
/* Check that the %_docsize and %_content tables contain the expected
** number of rows. */
if( rc==SQLITE_OK && pConfig->eContent==FTS5_CONTENT_NORMAL ){
i64 nRow;
i64 nRow = 0;
rc = fts5StorageCount(p, "content", &nRow);
if( rc==SQLITE_OK && nRow!=p->nTotalRow ) rc = FTS5_CORRUPT;
}
if( rc==SQLITE_OK && pConfig->bColumnsize ){
i64 nRow;
i64 nRow = 0;
rc = fts5StorageCount(p, "docsize", &nRow);
if( rc==SQLITE_OK && nRow!=p->nTotalRow ) rc = FTS5_CORRUPT;
}