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:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user