Commit 8fd9ad71 authored by Volker Krause's avatar Volker Krause
Browse files

Don't attempt platform section merging when there is only one

This also fixes a access-after-move which starts to matter once
PlatformSection gets a dptr.
parent 79a0d8c6
......@@ -354,6 +354,7 @@ void Platform::appendSection(std::vector<PlatformSection> &sections, const Platf
{
if (sections.empty() || sections.back().name != sec.name) {
sections.push_back(std::move(sec));
return;
}
// check which one is closer
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment