mirror of
https://github.com/NixOS/nix.git
synced 2025-11-12 21:46:01 +01:00
check for a null symbol
This commit is contained in:
parent
2b834d48aa
commit
e72a16a339
1 changed files with 5 additions and 1 deletions
|
|
@ -67,7 +67,11 @@ struct ErrPos {
|
||||||
{
|
{
|
||||||
line = pos.line;
|
line = pos.line;
|
||||||
column = pos.column;
|
column = pos.column;
|
||||||
file = pos.file;
|
// is file symbol null?
|
||||||
|
if (pos.file.set())
|
||||||
|
file = pos.file;
|
||||||
|
else
|
||||||
|
file = "";
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue