File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -128974,9 +128974,9 @@ SQLITE_PRIVATE Select *sqlite3SelectNew(
128974
128974
u32 selFlags, /* Flag parameters, such as SF_Distinct */
128975
128975
Expr *pLimit /* LIMIT value. NULL means not used */
128976
128976
){
128977
- Select *pNew;
128977
+ Select *pNew, *pAllocated ;
128978
128978
Select standin;
128979
- pNew = sqlite3DbMallocRawNN(pParse->db, sizeof(*pNew) );
128979
+ pAllocated = pNew = sqlite3DbMallocRawNN(pParse->db, sizeof(*pNew) );
128980
128980
if( pNew==0 ){
128981
128981
assert( pParse->db->mallocFailed );
128982
128982
pNew = &standin;
@@ -129010,12 +129010,11 @@ SQLITE_PRIVATE Select *sqlite3SelectNew(
129010
129010
#endif
129011
129011
if( pParse->db->mallocFailed ) {
129012
129012
clearSelect(pParse->db, pNew, pNew!=&standin);
129013
- pNew = 0;
129013
+ pAllocated = 0;
129014
129014
}else{
129015
129015
assert( pNew->pSrc!=0 || pParse->nErr>0 );
129016
129016
}
129017
- assert( pNew!=&standin );
129018
- return pNew;
129017
+ return pAllocated;
129019
129018
}
129020
129019
129021
129020
You can’t perform that action at this time.
0 commit comments