From 6ab26e5cdc76e7c297d256e326edf72532efcc8e 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 1833b6f99..a6caf95ce 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 */