tokenize: avoid "terminate called after throwing an instance of 'std::out_of_range'"
This commit is contained in:
parent
c7730044c7
commit
6bdb14edfd
|
@ -281,6 +281,7 @@ void Tokenizer::tokenizeCode(std::istream &code, const unsigned int FileIndex)
|
||||||
{
|
{
|
||||||
// Extract the filename
|
// Extract the filename
|
||||||
line.erase(0, line.find("\"") + 1);
|
line.erase(0, line.find("\"") + 1);
|
||||||
|
if (line.find("\"") != std::string::npos)
|
||||||
line.erase(line.find("\""));
|
line.erase(line.find("\""));
|
||||||
|
|
||||||
// Relative path..
|
// Relative path..
|
||||||
|
|
Loading…
Reference in New Issue