Skip to content

Commit e918565

Browse files
committed
issue #8474: Crash: double free or corruption (out)
1 parent de49d8b commit e918565

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ftvhelp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ static void generateJSNavTree(const std::vector<FTVNode*> &nodeList)
701701

702702
// write the navigation index (and sub-indices)
703703
std::sort(navIndex.begin(),navIndex.end(),[](const auto &n1,const auto &n2)
704-
{ return qstrcmp(n1.url,n2.url)<0; });
704+
{ return !n1.url.isEmpty() && (n2.url.isEmpty() || qstrcmp(n1.url,n2.url)<0); });
705705

706706
int subIndex=0;
707707
int elemCount=0;

0 commit comments

Comments
 (0)