Internals: Fix compares to null, ongoing part of bug1030. No functional change intended.

This commit is contained in:
Wilson Snyder
2016-02-03 20:44:31 -05:00
parent db6e5ce7cf
commit d1acaea611
4 changed files with 51 additions and 66 deletions
+1 -1
View File
@@ -235,7 +235,7 @@ void FileLine::modifyStateInherit(const FileLine* fromp) {
}
void FileLine::v3errorEnd(ostringstream& str) {
if (this && m_lineno) {
if (m_lineno) {
ostringstream nsstr;
nsstr<<this<<str.str();
if (warnIsOff(V3Error::errorCode())) V3Error::suppressThisWarning();