mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Remove an incorrect assert() statement. Fix a const-related warning.
FossilOrigin-Name: 96ed47493b3d46344fd2105642f31690aee06674
This commit is contained in:
@ -3285,7 +3285,6 @@ static int fts3IncrmergeCsr(
|
||||
int nByte; /* Bytes allocated at pCsr->apSegment[] */
|
||||
|
||||
/* Allocate space for the Fts3MultiSegReader.aCsr[] array */
|
||||
assert( nSeg>=2 );
|
||||
memset(pCsr, 0, sizeof(*pCsr));
|
||||
nByte = sizeof(Fts3SegReader *) * nSeg;
|
||||
pCsr->apSegment = (Fts3SegReader **)sqlite3_malloc(nByte);
|
||||
@ -4389,7 +4388,7 @@ static int fts3IncrmergeHintLoad(
|
||||
if( rc==SQLITE_OK ){
|
||||
sqlite3_bind_int(pSelect, 1, FTS_STAT_INCRMERGEHINT);
|
||||
if( SQLITE_ROW==sqlite3_step(pSelect) ){
|
||||
char *aHint = sqlite3_column_blob(pSelect, 0);
|
||||
const char *aHint = sqlite3_column_blob(pSelect, 0);
|
||||
int nHint = sqlite3_column_bytes(pSelect, 0);
|
||||
if( aHint ){
|
||||
int i;
|
||||
|
Reference in New Issue
Block a user