From 0b32f6d32fd8b986ae1085c223ca0ed5ae81e8ce Mon Sep 17 00:00:00 2001 From: ceriel Date: Thu, 31 Oct 1991 10:01:34 +0000 Subject: [PATCH] prevent null reference --- util/grind/db_symtab.g | 1 + 1 file changed, 1 insertion(+) diff --git a/util/grind/db_symtab.g b/util/grind/db_symtab.g index 4f8bff13c..d39801ddd 100644 --- a/util/grind/db_symtab.g +++ b/util/grind/db_symtab.g @@ -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: -- 2.34.1