forked from lix-project/lix
check for a null symbol
This commit is contained in:
parent
2b834d48aa
commit
e72a16a339
|
@ -67,7 +67,11 @@ struct ErrPos {
|
||||||
{
|
{
|
||||||
line = pos.line;
|
line = pos.line;
|
||||||
column = pos.column;
|
column = pos.column;
|
||||||
|
// is file symbol null?
|
||||||
|
if (pos.file.set())
|
||||||
file = pos.file;
|
file = pos.file;
|
||||||
|
else
|
||||||
|
file = "";
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue