Placefile line flags are not always specified

This commit is contained in:
Dan Paulat 2023-09-03 11:09:30 -05:00
parent 9766e02f32
commit bce274f5ac

View file

@ -586,7 +586,11 @@ void Placefile::Impl::ProcessLine(const std::string& line)
di->endTime_ = endTime_; di->endTime_ = endTime_;
di->width_ = std::stoul(tokenList[0]); di->width_ = std::stoul(tokenList[0]);
di->flags_ = std::stoul(tokenList[1]);
if (!tokenList[1].empty())
{
di->flags_ = std::stoul(tokenList[1]);
}
} }
if (tokenList.size() >= 3) if (tokenList.size() >= 3)
{ {