From: ceriel Date: Thu, 31 Oct 1991 10:01:34 +0000 (+0000) Subject: prevent null reference X-Git-Tag: release-5-5~671 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=0b32f6d32fd8b986ae1085c223ca0ed5ae81e8ce;p=ack.git prevent null reference --- 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: