Fix build failure with GCC 10.2

GCC is smart enough to detect that the address of a local variable is
returned. Since this appears to be code used for a debug assertion, we can
just return a null pointer.
This commit is contained in:
Markus Mäkelä
2020-08-17 13:23:33 +03:00
parent b31cb20bae
commit 9318319b96

View File

@ -122,7 +122,9 @@ Select *sqlite3SelectNew(
pNew = sqlite3DbMallocRawNN(db, sizeof(*pNew) );
if( pNew==0 ){
assert( db->mallocFailed );
#ifndef MAXSCALE
pNew = &standin;
#endif
}
if( pEList==0 ){
#ifndef MAXSCALE