Fix an uninitialized variable in the OP_ParseSchema opcode that comes up

only if the schema is corrupt.

FossilOrigin-Name: 725808d4c59176f71787452c7e500b563fd99cfc8ece47b1efe01d5e207efe0d
This commit is contained in:
drh
2018-09-07 11:08:31 +00:00
parent 803507f863
commit 9fd88e8db7
4 changed files with 10 additions and 9 deletions
+1
View File
@@ -5762,6 +5762,7 @@ case OP_ParseSchema: {
initData.db = db;
initData.iDb = pOp->p1;
initData.pzErrMsg = &p->zErrMsg;
initData.mInitFlags = 0;
zSql = sqlite3MPrintf(db,
"SELECT name, rootpage, sql FROM '%q'.%s WHERE %s ORDER BY rowid",
db->aDb[iDb].zDbSName, zMaster, pOp->p4.z);