Skip to content

Commit

Permalink
fix: makeFTSIndex crash when indexed articleCount is zero
Browse files Browse the repository at this point in the history
  • Loading branch information
shenlebantongying committed Oct 6, 2023
1 parent d795387 commit e057722
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 e057722

Please sign in to comment.