avoid null references on illegal input
This commit is contained in:
parent
da806afa6b
commit
6ab26e5cdc
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue