Skip to content

Commit

Permalink
Merge pull request #1198 from shenlebantongying/fts_crash
Browse files Browse the repository at this point in the history
fix: makeFTSIndex crash at startup when indexed articleCount is zero
  • Loading branch information
xiaoyifang authored Oct 6, 2023
2 parents 337fe7d + b3b1a53 commit 649cf17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ftshelpers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void makeFTSIndex( BtreeIndexing::BtreeDictionary * dict, QAtomicInt & isCancell

QVector< uint32_t > offsets;
offsets.resize( setOfOffsets.size() );
uint32_t * ptr = &offsets.front();
uint32_t * ptr = offsets.data();

for ( QSet< uint32_t >::ConstIterator it = setOfOffsets.constBegin(); it != setOfOffsets.constEnd(); ++it ) {
*ptr = *it;
Expand Down

0 comments on commit 649cf17

Please sign in to comment.