1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Ensure that when a Select object is reset a new, empty, SrcList is allocated.

FossilOrigin-Name: 4889cbf898d7ec54f061b21b6d3621b22fc482cbeaa7115d40995a4cc30e41db
This commit is contained in:
dan
2020-01-03 13:55:14 +00:00
parent 0cbec59c8b
commit aa328b6ab1
4 changed files with 33 additions and 9 deletions

View File

@@ -202,6 +202,7 @@ void sqlite3SelectReset(Parse *pParse, Select *p){
memset(&p->iLimit, 0, sizeof(Select) - offsetof(Select,iLimit));
p->pEList = sqlite3ExprListAppend(pParse, 0,
sqlite3ExprAlloc(pParse->db,TK_NULL,0,0));
p->pSrc = sqlite3DbMallocZero(pParse->db, sizeof(SrcList));
}
}