prevent null reference

This commit is contained in:
ceriel 1991-10-31 10:01:34 +00:00
parent 72387765ad
commit 2da0408b1a

View File

@ -823,6 +823,7 @@ DbRead(f)
else line_file->on_mptr = n->on_mptr; else line_file->on_mptr = n->on_mptr;
break; break;
case N_MAIN: case N_MAIN:
if (! FileScope) fatal("No file scope");
newfile(FileScope->sc_definedby->sy_idf); newfile(FileScope->sc_definedby->sy_idf);
break; break;
case N_SLINE: case N_SLINE: