prevent null reference
authorceriel <none@none>
Thu, 31 Oct 1991 10:01:34 +0000 (10:01 +0000)
committerceriel <none@none>
Thu, 31 Oct 1991 10:01:34 +0000 (10:01 +0000)
util/grind/db_symtab.g

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