check for a null symbol

This commit is contained in:
Ben Burdette 2020-06-30 11:00:51 -06:00
parent 2b834d48aa
commit e72a16a339

View file

@ -67,7 +67,11 @@ struct ErrPos {
{
line = pos.line;
column = pos.column;
file = pos.file;
// is file symbol null?
if (pos.file.set())
file = pos.file;
else
file = "";
return *this;
}