From 793a090bf5bffc075d4dac812810938544ca7623 Mon Sep 17 00:00:00 2001 From: ceriel Date: Mon, 23 Apr 1990 16:11:37 +0000 Subject: [PATCH] avoid null references on illegal input --- lang/pc/comp/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lang/pc/comp/main.c b/lang/pc/comp/main.c index 1833b6f9..a6caf95c 100644 --- a/lang/pc/comp/main.c +++ b/lang/pc/comp/main.c @@ -223,8 +223,8 @@ AddRequired() (void) Enter("string", D_TYPE, string_type, 0); /* DIRECTIVES */ - (void) Enter("forward", D_FORWARD, NULLTYPE, 0); - (void) Enter("extern", D_EXTERN, NULLTYPE, 0); + (void) Enter("forward", D_FORWARD, error_type, 0); + (void) Enter("extern", D_EXTERN, error_type, 0); /* CONSTANTS */ /* nil is TOKEN and thus part of the grammar */