From: ceriel Date: Mon, 23 Apr 1990 16:11:37 +0000 (+0000) Subject: avoid null references on illegal input X-Git-Tag: release-5-5~1728 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=6ab26e5cdc76e7c297d256e326edf72532efcc8e;p=ack.git avoid null references on illegal input --- 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 */