From 2da0408b1a7dd7cb6cce3027b5e3ae39802b991b 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 4f8bff13..d39801dd 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: