diff options
author | Ben Burdette <bburdette@gmail.com> | 2020-06-30 11:00:51 -0600 |
---|---|---|
committer | Ben Burdette <bburdette@gmail.com> | 2020-06-30 11:00:51 -0600 |
commit | e72a16a339092359e58ac7626ea89d4182b26642 (patch) | |
tree | 44300312c509e1d6ca5c76af5d6b5542867b1cd3 /src | |
parent | 2b834d48aae35c5050895fac540ca55387925d0f (diff) |
check for a null symbol
Diffstat (limited to 'src')
-rw-r--r-- | src/libutil/error.hh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libutil/error.hh b/src/libutil/error.hh index 1e6102ce1..6982e30aa 100644 --- a/src/libutil/error.hh +++ b/src/libutil/error.hh @@ -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; } |