avoid null references on illegal input
authorceriel <none@none>
Mon, 23 Apr 1990 16:11:37 +0000 (16:11 +0000)
committerceriel <none@none>
Mon, 23 Apr 1990 16:11:37 +0000 (16:11 +0000)
lang/pc/comp/main.c

index 1833b6f..a6caf95 100644 (file)
@@ -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 */